rename our /bin/login script to /bin/login.sh to avoid collisions with busybox -...
[openwrt-10.03/.git] / package / busybox / files / cron
index cf0f725d3e23b587bb053ac2c0dde5a6c80dd899..f24713060841aaa413da2486595efab234db75cf 100755 (executable)
@@ -3,11 +3,12 @@
 START=50
 
 start () {
+       [ -z "$(ls /etc/crontabs/)" ] && exit 1
        mkdir -p /var/spool/cron
        [ -L /var/spool/cron/crontabs ] || ln -s /etc/crontabs /var/spool/cron/crontabs
        crond -c /etc/crontabs
 }
 
 stop() {
-       killall crond
+       killall -9 crond
 }