projects
/
openwrt
/
staging
/
kaloz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5303dee
)
only start crond if there are files in the crontab
author
John Crispin
<john@openwrt.org>
Mon, 28 Jan 2008 17:23:22 +0000
(17:23 +0000)
committer
John Crispin
<john@openwrt.org>
Mon, 28 Jan 2008 17:23:22 +0000
(17:23 +0000)
SVN-Revision: 10292
package/busybox/files/cron
patch
|
blob
|
history
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