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

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