summaryrefslogtreecommitdiff
path: root/Propellor/Property/Cron.hs
diff options
context:
space:
mode:
authorJoey Hess2014-04-08 19:31:03 -0400
committerJoey Hess2014-04-08 19:31:03 -0400
commita52a2a89dfe92d7bed4a6446101657a288fd3bae (patch)
tree207f98df36a858276269dcf87926566ea082018b /Propellor/Property/Cron.hs
parent7561ee0443a33ffc0574dc6b606c9128da3fba4f (diff)
serviceInstalledRunning
Diffstat (limited to 'Propellor/Property/Cron.hs')
-rw-r--r--Propellor/Property/Cron.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Propellor/Property/Cron.hs b/Propellor/Property/Cron.hs
index 30bdb510..fa6019ea 100644
--- a/Propellor/Property/Cron.hs
+++ b/Propellor/Property/Cron.hs
@@ -18,8 +18,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"
+ `requires` Apt.serviceInstalledRunning "cron"
`describe` ("cronned " ++ desc)
-- | Installs a cron job, and runs it niced and ioniced.