propellor spin

This commit is contained in:
Joey Hess 2014-07-18 12:39:45 -04:00
parent 6e490dff6e
commit ad80a1600d
Failed to extract signature
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ job desc times user cddir command = combineProperties ("cronned " ++ desc)
, "SHELL=/bin/sh" , "SHELL=/bin/sh"
, "PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" , "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 -- Use a separate script because it makes the cron job name
-- prettier in emails, and also allows running the job manually. -- 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" [ "#!/bin/sh"
, "# Generated by propellor" , "# Generated by propellor"
, "set -e" , "set -e"
, "chronic flock -n " ++ shellEscape cronjobfile , "flock -n " ++ shellEscape cronjobfile
++ " sh -c " ++ shellEscape cmdline ++ " sh -c " ++ shellEscape cmdline
] ]
, scriptfile `File.mode` combineModes (readModes ++ executeModes) , scriptfile `File.mode` combineModes (readModes ++ executeModes)