Please forgive this self-promoting cross post, but I've just added a new feature to the Server Power Control plugin which may be of interest to LMS linux users.
In prior versions, Server Power Control has had the ability to program a server's RTC wake alarm hardware so that suspended or hibernating servers were woken out of slumber in order to service Squeezebox alarms or scheduled library scans, etc. Now, I've added the ability for Server Power Control to parse the root contab and schedule system wake-ups based on events there too. MS Windows has had this sort of ability built-into the system event scheduler since (I believe) Vista. But I haven't known of a similar facility in Linux. Server Power Control now tries to fill that gap.
Example: say you've added the event:
..via # sudo crontab -eCode:0 2 * * 2 /usr/local/sbin/big-chores.sh
..i.e. cron runs the big-chores.sh script file every Tuesday at 2:00 am. SrvrPowerCtrl will now examine the crontab (via sudo crontab -l), determine when the next event will occur, and schedule a system wake-up for five minutes beforehand.
This option was actually pretty trivial to add. Abhijit Menon-Sen's Set::Crontab and P Kent's Schedule::Cron::Events do most of the heavy lifting.
If you're using SrvrPowerCtrl and you upgrade to this new version, please remember to re-run the setup script. This will add permissions in /etc/sudoers so that the squeezeboxserver user can list the root crontab via # sudo contab -l.
Results 1 to 1 of 1
Thread: Cron support for SrvrPowerCtrl
2012-04-28, 05:43 #1
Cron support for SrvrPowerCtrl