source:
freewrt/package/busybox/files/crond.init@
6fc4520e
| Last change on this file since 6fc4520e was c361faa, checked in by , 19 years ago | |
|---|---|
|
|
| File size: 329 bytes | |
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | |
| 3 | . /etc/rc.conf |
| 4 | |
| 5 | case $1 in |
| 6 | autostart) |
| 7 | test x"$crond" = x"NO" && exit 0 |
| 8 | exec $0 start |
| 9 | ;; |
| 10 | start) |
| 11 | mkdir -p /var/spool/cron |
| 12 | ln -s /etc/crontabs /var/spool/cron/crontabs |
| 13 | crond -c /etc/crontabs |
| 14 | ;; |
| 15 | stop) |
| 16 | killall crond |
| 17 | ;; |
| 18 | restart) |
| 19 | $0 stop |
| 20 | $0 start |
| 21 | ;; |
| 22 | *) |
| 23 | echo "Usage: $0 {start | stop | restart}" |
| 24 | ;; |
| 25 | esac |
| 26 | exit $? |
Note:
See TracBrowser
for help on using the repository browser.
