propellor spin
This commit is contained in:
parent
6e490dff6e
commit
ad80a1600d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue