-
Notifications
You must be signed in to change notification settings - Fork 210
Description
As an alternative to the standard cron implementations, you can use snooze(1) together with the snooze-hourly, snooze-daily, snooze-weekly and snooze-monthly services, which are provided by the snooze package for this purpose. Each of these services execute scripts in the respective /etc/cron.* directories. (ref)
After spending a while scrutinizing the manpage for snooze, I can see that it has a lot of useful functions (timefiles are awesome, rewrote those several times for my cron jobs). But I'm not quite sure how to emulate cron-like behavior with the listed tools, particularly at a granularity less-than hourly. Someone else was recently asking for clarification on snooze services in the IRC as well, which tells me I'm not the only one. (I can kinda get closer by reverse-engineering the snooze-${time}ly services...)
Given that many people who might be reading the cron page in the handbook may be quite new to void & runit services, I think there might be value in adding some croncrete concrete examples/explanation of runit-native scheduling. This might also help people who are trying to figure out the analog for systemd timers.