diff options
author | John Crispin <john@openwrt.org> | 2008-01-28 17:23:22 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2008-01-28 17:23:22 +0000 |
commit | 6df5a9cf17ea2336b8629f1c61c3209ae09b3b4a (patch) | |
tree | 1e4a152e7c8c2e7dd72f3fd5c20c740f35430e9c /package/busybox/files | |
parent | 5303deecf170c291df307f23480590b53f8287e5 (diff) | |
download | upstream-6df5a9cf17ea2336b8629f1c61c3209ae09b3b4a.tar.gz upstream-6df5a9cf17ea2336b8629f1c61c3209ae09b3b4a.tar.bz2 upstream-6df5a9cf17ea2336b8629f1c61c3209ae09b3b4a.zip |
only start crond if there are files in the crontab
SVN-Revision: 10292
Diffstat (limited to 'package/busybox/files')
-rwxr-xr-x | package/busybox/files/cron | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/busybox/files/cron b/package/busybox/files/cron index 9bc89d81ca..9a31392717 100755 --- 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 |