f24713060841aaa413da2486595efab234db75cf
[openwrt/svn-archive/archive.git] / package / busybox / files / cron
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3 START=50
4
5 start () {
6 [ -z "$(ls /etc/crontabs/)" ] && exit 1
7 mkdir -p /var/spool/cron
8 [ -L /var/spool/cron/crontabs ] || ln -s /etc/crontabs /var/spool/cron/crontabs
9 crond -c /etc/crontabs
10 }
11
12 stop() {
13 killall -9 crond
14 }