Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8026

Raspberry Pi OS • Re: Resetting at a certain time every night (Pi5)

$
0
0
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
@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.
@reboot is run at boot.
I think something is lost in "translation"
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 :)

Statistics: Posted by Wraithypooo — Fri Apr 11, 2025 6:29 pm



Viewing all articles
Browse latest Browse all 8026

Trending Articles