summaryrefslogtreecommitdiff
path: root/package/base-files/default/etc/init.d/S60cron
blob: a450c36dd2287e698c0ae0aa300be765296d99a7 (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
	ln -s /etc/crontabs /var/spool/cron/crontabs
	crond -c /etc/crontabs
}

stop() {
	killall crond
}