ensure cron is running
This commit is contained in:
parent
668cc936e4
commit
1f314984b5
|
@ -19,6 +19,7 @@ job desc times user cddir command = ("/etc/cron.d/" ++ desc) `File.hasContent`
|
||||||
, times ++ "\t" ++ user ++ "\t" ++ "cd " ++ cddir ++ " && " ++ command
|
, times ++ "\t" ++ user ++ "\t" ++ "cd " ++ cddir ++ " && " ++ command
|
||||||
]
|
]
|
||||||
`requires` Apt.installed ["cron"]
|
`requires` Apt.installed ["cron"]
|
||||||
|
`requires` serviceRunning "cron"
|
||||||
`describe` ("cronned " ++ desc)
|
`describe` ("cronned " ++ desc)
|
||||||
|
|
||||||
-- | Installs a cron job, and runs it niced and ioniced.
|
-- | Installs a cron job, and runs it niced and ioniced.
|
||||||
|
|
Loading…
Reference in New Issue