Root/package/busybox/files/cron

1#!/bin/sh /etc/rc.common
2# Copyright (C) 2006 OpenWrt.org
3START=50
4
5start () {
6    loglevel=$(uci_get "system.@system[0].cronloglevel")
7    [ -z "$(ls /etc/crontabs/)" ] && exit 1
8    mkdir -p /var/spool/cron
9    ln -s /etc/crontabs /var/spool/cron/ 2>/dev/null
10    crond -c /etc/crontabs -l ${loglevel:-5}
11}
12
13stop() {
14    killall -9 crond
15}
16

Archive Download this file



interactive