package/busybox: use new service wrapper
[openwrt.git] / package / busybox / files / cron
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006-2011 OpenWrt.org
3
4 START=50
5
6 SERVICE_USE_PID=1
7
8 start () {
9 loglevel=$(uci_get "system.@system[0].cronloglevel")
10 [ -z "$(ls /etc/crontabs/)" ] && exit 1
11 mkdir -p /var/spool/cron
12 ln -s /etc/crontabs /var/spool/cron/ 2>/dev/null
13 service_start /usr/sbin/crond -c /etc/crontabs -l ${loglevel:-5}
14 }
15
16 stop() {
17 service_stop /usr/sbin/crond
18 }
This page took 0.046606 seconds and 5 git commands to generate.