mirror of
https://github.com/kaboomserver/framework.git
synced 2025-01-06 14:50:44 +00:00
8 lines
342 B
Text
8 lines
342 B
Text
# Ensure cron knows where commands like 'su' and 'reboot' are located
|
|
PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PATH
|
|
|
|
# Start the Minecraft server after an OS reboot
|
|
@reboot su server -c '~/framework/script/init.sh'
|
|
|
|
# Reset and reboot the server every 24 hours (0 0 * * * / at 00:00)
|
|
0 0 * * * su server -c '~/framework/script/reset.sh' && reboot
|