diff options
author | James <> | 2013-03-17 12:16:37 +0000 |
---|---|---|
committer | James <> | 2013-03-17 12:16:37 +0000 |
commit | 27b76ab0671089c47506615a796a261e993896a7 (patch) | |
tree | 61213d67e7fa87b20356b23798558e2c4212c42f /package/busybox/files/.svn/text-base/cron.svn-base | |
download | trunk-36060-master.tar.gz trunk-36060-master.tar.bz2 trunk-36060-master.zip |
Diffstat (limited to 'package/busybox/files/.svn/text-base/cron.svn-base')
-rw-r--r-- | package/busybox/files/.svn/text-base/cron.svn-base | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/package/busybox/files/.svn/text-base/cron.svn-base b/package/busybox/files/.svn/text-base/cron.svn-base new file mode 100644 index 0000000..465b1ab --- /dev/null +++ b/package/busybox/files/.svn/text-base/cron.svn-base @@ -0,0 +1,18 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2006-2011 OpenWrt.org + +START=50 + +SERVICE_USE_PID=1 + +start () { + loglevel=$(uci_get "system.@system[0].cronloglevel") + [ -z "$(ls /etc/crontabs/)" ] && exit 1 + mkdir -p /var/spool/cron + ln -s /etc/crontabs /var/spool/cron/ 2>/dev/null + service_start /usr/sbin/crond -c /etc/crontabs -l ${loglevel:-5} +} + +stop() { + service_stop /usr/sbin/crond +} |