@reboot is not a command. Its presence in the file does not cause a reboot to happen. What it means is "do this at boot".I think something is lost in "translation"@daily is not run at boot. It's run once a day. Off the top of my head I forget what time it runs, probably midnight.To summarize my understanding so far:
I use cron to make 2 things - 1. a reboot command every 24 hours at a given point in time @daily - 2. start the startserver.sh at boot
@reboot is run at boot.
There seem to be some confusion in my head as to "reboot" "boot". The way you describe it sounds like a loop to me (@reboot is run at boot.).
What i thought the @daily command was for, was that once every day the Pi would shutdown and boot back up, so a combination:
@daily (At 3 am) @reboot the Pi
And then incorporate the starserver.sh in the boot up sequence of the Pi (as a watchable service if possible)
Lastly some kind of script that "looks" at the MCserver to see if it running, and if not - start it up (In case of MCserver crash)
IT would seem that my use of the word "server" is very unclear, as i write it both for booting the Pi and the MCserver, i apologize for that
In plain English you want cron to do two things. At boot, start the Minecraft server, optionally with some kind of monitor that kills it if it misbehaves and/or restarts it if it stops running. And, once a day (at midnight), reboot the Pi.
Statistics: Posted by ame — Fri Apr 11, 2025 7:03 pm