On Tue, 2023-11-14 at 13:52 +0000, Patrick O'Callaghan wrote:
My system (both F38 and now F39) reboots itself every morning at 8am, yet nothing in the cron configuration is telling it to do that and I don't see anything obvious in the journal to cause it.
How can I figure out what is triggering this? I know the description is vague, but there it is.
Just to close this off:
- The problem was being caused by a flaky smart plug - Restoring factory settings to the plug fixed it - I decided to follow some recommendations in the thread and use the built-in motherboard RTC instead of the smart plug as a way to re- activate the system at a set time. This is now working (touch wood).
My hibernation script now includes this snippet, if anyone's interested:
set_wakeup() { # See https://www.linux.com/training-tutorials/wake-linux-rtc-alarm-clock/ if [[ $(date +"%H") -lt 8 ]]; then datestring=$(date '+%s' -d '08:00 today') else datestring=$(date '+%s' -d '08:00 tomorrow') fi echo "$datestring" > /sys/class/rtc/rtc0/wakealarm }
Thanks again to all who chipped in.
poc