only start crond if there are files in the crontab
authorJohn Crispin <john@openwrt.org>
Mon, 28 Jan 2008 17:23:22 +0000 (17:23 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 28 Jan 2008 17:23:22 +0000 (17:23 +0000)
SVN-Revision: 10292

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