Re: Strange daily reboot - SOLVED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux