From: John Crispin Date: Mon, 28 Jan 2008 17:23:22 +0000 (+0000) Subject: only start crond if there are files in the crontab X-Git-Tag: v19.07.0-rc1~37813 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6df5a9cf17ea2336b8629f1c61c3209ae09b3b4a;p=openwrt%2Fstaging%2Fhauke.git only start crond if there are files in the crontab SVN-Revision: 10292 --- diff --git a/package/busybox/files/cron b/package/busybox/files/cron index 9bc89d81ca..9a31392717 100755 --- a/package/busybox/files/cron +++ b/package/busybox/files/cron @@ -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