projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87cb2bc
)
only start crond if there are files in the crontab
author
John Crispin
<blogic@openwrt.org>
Mon, 28 Jan 2008 17:23:22 +0000
(17:23 +0000)
committer
John Crispin
<blogic@openwrt.org>
Mon, 28 Jan 2008 17:23:22 +0000
(17:23 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10292
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
package/busybox/files/cron
patch
|
blob
|
history
diff --git
a/package/busybox/files/cron
b/package/busybox/files/cron
index
9bc89d8
..
9a31392
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