Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Times
- job :: Desc -> Times -> User -> FilePath -> String -> Property DebianLike
- niceJob :: Desc -> Times -> User -> FilePath -> String -> Property DebianLike
- jobDropped :: Desc -> Times -> Property UnixLike
- runPropellor :: Times -> RevertableProperty DebianLike UnixLike
Documentation
When to run a cron job.
The Daily, Monthly, and Weekly options allow the cron job to be run by anacron, which is useful for non-servers.
job :: Desc -> Times -> User -> FilePath -> String -> Property DebianLike Source #
Installs a cron job, that will run as a specified user in a particular directory. Note that the Desc must be unique, as it is used for the cron job 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 -> Times -> User -> FilePath -> String -> Property DebianLike Source #
Installs a cron job, and runs it niced and ioniced.
jobDropped :: Desc -> Times -> Property UnixLike Source #
Removes a cron job created by job
or niceJob
, as identified by the
Desc
passed to those properties when the cronjob was set up
Those properties are not revertable because simply removing a cronjob does
not undo the changes it might have made to the system, i.e., jobDropped
is
not in the general case a reversion of job
or niceJob
runPropellor :: Times -> RevertableProperty DebianLike UnixLike Source #
Installs a cron job to run propellor.