summaryrefslogtreecommitdiffstats
path: root/package/base-files/default/etc/init.d/S60cron
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/default/etc/init.d/S60cron')
-rwxr-xr-xpackage/base-files/default/etc/init.d/S60cron14
1 files changed, 10 insertions, 4 deletions
diff --git a/package/base-files/default/etc/init.d/S60cron b/package/base-files/default/etc/init.d/S60cron
index 6df9b7dee..a450c36dd 100755
--- a/package/base-files/default/etc/init.d/S60cron
+++ b/package/base-files/default/etc/init.d/S60cron
@@ -1,6 +1,12 @@
-#!/bin/sh
+#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
-mkdir -p /var/spool/cron
-ln -s /etc/crontabs /var/spool/cron/crontabs
-crond -c /etc/crontabs
+start () {
+ mkdir -p /var/spool/cron
+ ln -s /etc/crontabs /var/spool/cron/crontabs
+ crond -c /etc/crontabs
+}
+
+stop() {
+ killall crond
+}