From ad80a1600df71eb23c0e6948b179637dc3f74e24 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 18 Jul 2014 12:39:45 -0400 Subject: propellor spin --- src/Propellor/Property/Cron.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Propellor') 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) -- cgit v1.2.3