summaryrefslogtreecommitdiff
path: root/package/busybox/files/crond.init
diff options
context:
space:
mode:
Diffstat (limited to 'package/busybox/files/crond.init')
-rw-r--r--package/busybox/files/crond.init4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/busybox/files/crond.init b/package/busybox/files/crond.init
index dcccb7fca..ea8faa90a 100644
--- a/package/busybox/files/crond.init
+++ b/package/busybox/files/crond.init
@@ -11,10 +11,10 @@ autostart)
;;
start)
mkdir -p /var/spool/cron
- crond -c /etc/crontabs
+ /usr/sbin/crond -c /etc/crontabs
;;
stop)
- pkill crond
+ kill $(pgrep -f /usr/sbin/crond)
;;
restart)
sh $0 stop