RTCWake with Proxmox

Rhodesia

New Member
Oct 22, 2024
5
2
3
I've just tried to implement a scheduled shutdown using crontab and RTCWake in proxmox, it doesn't seem to work for me, the server just continues running. Has anyone else tried to implement this on Proxmox?

In crontab -e:
# weekdays: suspend at 22:30 and wake up at 18:00
40 22 * * 1-5 /usr/sbin/rtcwake -l -m disk -t `date -d "18:00" +\%s` >> /var/log/suspend-resume.log

# weekends: suspend at 23:00 and wake up at 10:30
10 23 * * 6-7 /usr/sbin/rtcwake -l -m disk -t `date -d "10:30" +\%s` >> /var/log/suspend-resume.log

There's nothing in the suspend resume log after the event. It does look from the proxmox GUI log that it attempted to run the cron job.

Edit: Just realised I've posted this in the wrong thread, should have been in "Proxmox VE: Installation and configuration"!
 

Attachments

  • Capture.JPG
    Capture.JPG
    87.2 KB · Views: 9
Last edited: