diff options
| author | Joey Hess <joey@kitenet.net> | 2014-07-18 12:39:45 -0400 |
|---|---|---|
| committer | Joey Hess <joey@kitenet.net> | 2014-07-18 12:39:45 -0400 |
| commit | ad80a1600df71eb23c0e6948b179637dc3f74e24 (patch) | |
| tree | 642cb179687d7cbc57d028f1656fc8d75321c809 /src | |
| parent | 6e490dff6e82be1d0d77117bc2aa8cafb15a949e (diff) | |
propellor spin
Diffstat (limited to 'src')
| -rw-r--r-- | src/Propellor/Property/Cron.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Propellor/Property/Cron.hs b/src/Propellor/Property/Cron.hs index 627599e6..d55c3dbb 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) |
