I'm putting together a service script using
The monitoring script, forking the processes, and keeping track of the states is functional. I already have it in use for another solution. The part I'm stuck on is how to point
/usr/libexec/atrun
where it would monitor a directory (or run atq
) for incoming 'job' files, move the file to a 'running' directory, execute the job, then finally remove the file. The idea here is that instead of polling for jobs (how it's currently done with the cron approach) this would be instantaneous.The monitoring script, forking the processes, and keeping track of the states is functional. I already have it in use for another solution. The part I'm stuck on is how to point
at
and atrun
to a custom directory other than /var/at/jobs so that it does not interfier with the crontab version of it.