source: freewrt/package/base-files/default/etc/init.d/S60cron@ b679cc1

freewrt_1_0 freewrt_2_0
Last change on this file since b679cc1 was b679cc1, checked in by Waldemar Brodkorb <wbx@…>, 20 years ago

add start/stop to init script

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

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