Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Oneshot services are done by pausing the service after the executable invoked. See alsa as an example.
I'll rather use something like snooze to create runit services for each timed job, which integrates well into supervision/runit and I can use runits logging mechanism. I can use sv to send signals to a running job or to the snooze process to immediately start the job with SIGALRM. I will have features like time files, which allow me to do things like "run the job every 5 minutes, after the job finished" or "once a day" while remembering state between reboots.