only start crond if there are files in the crontab

SVN-Revision: 10292
This commit is contained in:
John Crispin 2008-01-28 17:23:22 +00:00
parent 5303deecf1
commit 6df5a9cf17

View file

@ -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