only start crond if there are files in the crontab
[openwrt/openwrt.git] / package / busybox / files / cron
index 9bc89d81ca75c9812d788ba8caf79044e900d920..9a313927178067409d5c729dce84922f8b24c2b0 100755 (executable)
@@ -3,6 +3,7 @@
 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