From 02e670e14d39373c2423bf4e4388d52c55a1f61f Mon Sep 17 00:00:00 2001 From: Luna <83607009+LunaWasFlagged@users.noreply.github.com> Date: Fri, 16 Jul 2021 12:06:48 -0300 Subject: [PATCH] (Hopefully) fix reboot issue For more accurate debugging, I'd need to reproduce the issue on one of my servers. --- config/crontab | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/crontab b/config/crontab index 14ba109..4fa8cfe 100644 --- a/config/crontab +++ b/config/crontab @@ -1,5 +1,5 @@ # Start the Minecraft server after an OS reboot -@reboot su server -c '~/framework/script/init.sh' +@reboot sleep 30 && /usr/bin/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 +0 0 * * * /usr/bin/su server -c '~/framework/script/reset.sh' && /usr/sbin/reboot --reboot