framework/config/crontab
2024-06-13 23:47:55 -04:00

8 lines
362 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 kaboom -c '~/framework/script/init.sh'
# Reset and reboot the server every 24 hours (0 0 * * * / at 00:00)
0 0 * * * su kaboom -c '~/framework/script/reset.sh && ~/framework/script/init.sh'