2006-10-05 04:05:48 +08:00
|
|
|
#!/bin/sh /etc/rc.common
|
2006-06-27 08:36:13 +08:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
2007-05-10 18:38:53 +08:00
|
|
|
START=50
|
2006-06-27 08:36:13 +08:00
|
|
|
|
2006-10-05 04:05:48 +08:00
|
|
|
start () {
|
2008-01-29 01:23:22 +08:00
|
|
|
[ -z $(ls /etc/crontabs/) ] && exit 1
|
2006-10-05 04:05:48 +08:00
|
|
|
mkdir -p /var/spool/cron
|
2006-11-04 20:47:45 +08:00
|
|
|
[ -L /var/spool/cron/crontabs ] || ln -s /etc/crontabs /var/spool/cron/crontabs
|
2006-10-05 04:05:48 +08:00
|
|
|
crond -c /etc/crontabs
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2007-06-22 16:47:29 +08:00
|
|
|
killall -9 crond
|
2006-10-05 04:05:48 +08:00
|
|
|
}
|