mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-18 14:47:46 +01:00
only start crond if there are files in the crontab
SVN-Revision: 10292
This commit is contained in:
parent
5303deecf1
commit
6df5a9cf17
@ -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 New Issue
Block a user