Safe Haskell | None |
---|
Documentation
job :: Desc -> CronTimes -> UserName -> FilePath -> String -> PropertySource
Installs a cron job, run as a specified user, in a particular directory. Note that the Desc must be unique, as it is used for the cron.d/ filename.
Only one instance of the cron job is allowed to run at a time, no matter how long it runs. This is accomplished using flock locking of the cron job file.
The cron job's output will only be emailed if it exits nonzero.
niceJob :: Desc -> CronTimes -> UserName -> FilePath -> String -> PropertySource
Installs a cron job, and runs it niced and ioniced.
runPropellor :: CronTimes -> PropertySource
Installs a cron job to run propellor.