Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3200

General Questions • [Software] RTCWake does not respect Epoch time

$
0
0
Background: I have a small server that is intended to wake up on Wednesdays at 22:55, do a job then go to sleep. Rinse and repeat.

To accomplish this I have a cronjob setup according to this post.
Screenshot 2024-07-08 190853.png
This does set the server to sleep, however, it does not stay asleep until Wednesday. Rather, it will wake up EVERY day at 22:55. This does not make any sense to me at all.

With the verbose modifier, you can see the output when the system goes to sleep:
Screenshot 2024-07-08 191224.png
Using an epoch calculator, I can verify that yes, system time is accurate and yes, rtc time is accurate. I can also verify that "alarm" time is accurate and that the output even says in human readable form that it will wake up on wed at 22:55 (when adjusted from UTC time to New York time). It all seems like it should work. But it doesn't. Journalctl shows that the system will always wake up at the next instance of 22:55, regardless of the day and completely disregarding the Epoch time. I've even changed the time in my cronjob, from 22:55 to 18:55 and guess what: It will wake up at the next 18:55 regardless of the day.

How does the "script" disregard epoch time but at the same time know the human readable time and disregard the specified day?

This is driving me bonkers! How is this possible? What am I missing? Can ANYONE explain this?

Statistics: Posted by mongoose88 — 2024-07-08 23:26 — Replies 1 — Views 22



Viewing all articles
Browse latest Browse all 3200

Trending Articles