source: freewrt/package/busybox/files/crond.init@ 6fc4520e

freewrt_1_0 freewrt_2_0
Last change on this file since 6fc4520e was c361faa, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

add separate crond script to busybox package, do not startup by default. use /etc/rc.conf to activate

git-svn-id: svn://www.freewrt.org/trunk/freewrt@609 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100755
File size: 329 bytes
Line 
1#!/bin/sh
2
3. /etc/rc.conf
4
5case $1 in
6autostart)
7 test x"$crond" = x"NO" && exit 0
8 exec $0 start
9 ;;
10start)
11 mkdir -p /var/spool/cron
12 ln -s /etc/crontabs /var/spool/cron/crontabs
13 crond -c /etc/crontabs
14 ;;
15stop)
16 killall crond
17 ;;
18restart)
19 $0 stop
20 $0 start
21 ;;
22*)
23 echo "Usage: $0 {start | stop | restart}"
24 ;;
25esac
26exit $?
Note: See TracBrowser for help on using the repository browser.