aboutsummaryrefslogtreecommitdiffstats
path: root/config/cron
diff options
context:
space:
mode:
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;"
)
);