mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-31 16:35:44 +00: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=50
|
||||||
|
|
||||||
start () {
|
start () {
|
||||||
|
[ -z $(ls /etc/crontabs/) ] && exit 1
|
||||||
mkdir -p /var/spool/cron
|
mkdir -p /var/spool/cron
|
||||||
[ -L /var/spool/cron/crontabs ] || ln -s /etc/crontabs /var/spool/cron/crontabs
|
[ -L /var/spool/cron/crontabs ] || ln -s /etc/crontabs /var/spool/cron/crontabs
|
||||||
crond -c /etc/crontabs
|
crond -c /etc/crontabs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user