framework/config/crontab

9 lines
342 B
Plaintext
Raw Normal View History

# Ensure cron knows where commands like 'su' and 'reboot' are located
PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PATH
2021-07-10 15:32:28 +00:00
# Start the Minecraft server after an OS reboot
2020-04-16 22:01:58 +00:00
@reboot su server -c '~/framework/script/init.sh'
2021-07-10 15:32:28 +00:00
# Reset and reboot the server every 24 hours (0 0 * * * / at 00:00)
2020-04-16 22:01:58 +00:00
0 0 * * * su server -c '~/framework/script/reset.sh' && reboot