projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
only start crond if there are files in the crontab
[openwrt/openwrt.git]
/
package
/
busybox
/
files
/
cron
diff --git
a/package/busybox/files/cron
b/package/busybox/files/cron
index 9bc89d81ca75c9812d788ba8caf79044e900d920..9a313927178067409d5c729dce84922f8b24c2b0 100755
(executable)
--- 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