mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-18 22:43:53 +01:00
If /var/spool/cron/crontabs is a directory, then /etc/init.d/cron will place a spurious "crontabs" symlink into it. Patch fro Stefan Monnier
SVN-Revision: 20354
This commit is contained in:
parent
d22b22b356
commit
d40104d567
@ -6,7 +6,7 @@ start () {
|
|||||||
loglevel=$(/sbin/uci get "system.@system[0].cronloglevel" 2>/dev/null)
|
loglevel=$(/sbin/uci get "system.@system[0].cronloglevel" 2>/dev/null)
|
||||||
[ -z "$(ls /etc/crontabs/)" ] && exit 1
|
[ -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
|
ln -s /etc/crontabs /var/spool/cron/ 2>/dev/null
|
||||||
crond -c /etc/crontabs -l ${loglevel:-5}
|
crond -c /etc/crontabs -l ${loglevel:-5}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user