only start crond if there are files in the crontab
SVN-Revision: 10292
This commit is contained in:
parent
5303deecf1
commit
6df5a9cf17
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue