summaryrefslogtreecommitdiffstats
path: root/package/base-files/default/etc/init.d/cron
blob: e78d02332cd3881d06ae6d905793709123e0f286 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org

start () {
	mkdir -p /var/spool/cron
	[ -L /var/spool/cron/crontabs ] || ln -s /etc/crontabs /var/spool/cron/crontabs
	crond -c /etc/crontabs
}

stop() {
	killall crond
}