diff --git a/src/Propellor/Property/Cron.hs b/src/Propellor/Property/Cron.hs index 627599e..d55c3db 100644 --- a/src/Propellor/Property/Cron.hs +++ b/src/Propellor/Property/Cron.hs @@ -27,7 +27,7 @@ job desc times user cddir command = combineProperties ("cronned " ++ desc) , "SHELL=/bin/sh" , "PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" , "" - , times ++ "\t" ++ user ++ "\t" ++ shellEscape scriptfile + , times ++ "\t" ++ user ++ "\tchronic " ++ shellEscape scriptfile ] -- Use a separate script because it makes the cron job name -- prettier in emails, and also allows running the job manually. @@ -35,7 +35,7 @@ job desc times user cddir command = combineProperties ("cronned " ++ desc) [ "#!/bin/sh" , "# Generated by propellor" , "set -e" - , "chronic flock -n " ++ shellEscape cronjobfile + , "flock -n " ++ shellEscape cronjobfile ++ " sh -c " ++ shellEscape cmdline ] , scriptfile `File.mode` combineModes (readModes ++ executeModes)