aboutsummaryrefslogtreecommitdiffstats
path: root/config/cron
diff options
context:
space:
mode:
authorJim P <jim@pingle.org>2013-01-07 05:08:07 -0800
committerJim P <jim@pingle.org>2013-01-07 05:08:07 -0800
commit0d92e8fdabb102e43afb99f848fa992557fb37e1 (patch)
tree54911dcf9845b84c2230a4bfef7ecfe13f1619c5 /config/cron
parentff8b5325d6c7c97364a6d549871a815445497b70 (diff)
parent059f97bf982435e7a34f908a9b524e44123095eb (diff)
downloadpfsense-packages-0d92e8fdabb102e43afb99f848fa992557fb37e1.tar.gz
pfsense-packages-0d92e8fdabb102e43afb99f848fa992557fb37e1.tar.bz2
pfsense-packages-0d92e8fdabb102e43afb99f848fa992557fb37e1.zip
Merge pull request #348 from phil-davis/master
Improve cron stop checks
Diffstat (limited to 'config/cron')
-rw-r--r--config/cron/cron.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/cron/cron.inc b/config/cron/cron.inc
index e5df104a..88388b3c 100644
--- a/config/cron/cron.inc
+++ b/config/cron/cron.inc
@@ -82,7 +82,7 @@ function cron_install_command()
write_rcfile(array(
"file" => "cron.sh",
"start" => "/usr/sbin/cron -s &",
- "stop" => "kill -9 `cat /var/run/cron.pid`"
+ "stop" => "[ -f \"/var/run/cron.pid\" ] && kill -9 `cat /var/run/cron.pid`; rm -f /var/run/cron.pid;"
)
);