ensure cron is running

This commit is contained in:
Joey Hess 2014-04-01 20:47:05 -04:00
parent 668cc936e4
commit 1f314984b5
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ job desc times user cddir command = ("/etc/cron.d/" ++ desc) `File.hasContent`
, times ++ "\t" ++ user ++ "\t" ++ "cd " ++ cddir ++ " && " ++ command
]
`requires` Apt.installed ["cron"]
`requires` serviceRunning "cron"
`describe` ("cronned " ++ desc)
-- | Installs a cron job, and runs it niced and ioniced.