]> git.pld-linux.org Git - packages/autolog.git/blob - autolog.init
- dropped pre-cvs changelog
[packages/autolog.git] / autolog.init
1 #! /bin/sh
2 #
3 # chkconfig:    2345 85 15
4 #
5 # description:  autolog
6 #
7 # processname:  autolog
8 # pidfile:      /var/run/autolog.pid
9 # config:       /etc/autolog.conf
10
11 # Source function library
12 . /etc/rc.d/init.d/functions
13
14 RETVAL=0
15 # See how we were called.
16 case "$1" in
17   start)
18         if [ ! -f /var/lock/subsys/autolog ]; then
19                 msg_starting "Autolog"
20                 daemon autolog < /dev/null
21                 RETVAL=$?
22                 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/autolog
23         else
24                 msg_already_running "Autolog"
25         fi
26         ;;
27   stop)
28         if [ -f /var/lock/subsys/autolog ]; then
29                 msg_stopping "Autolog"
30                 killproc autolog
31                 rm -f /var/lock/subsys/autolog >/dev/null 2>&1
32         else
33                 msg_not_running "Autolog"
34         fi
35         ;;
36   restart|force-reload)
37         $0 stop
38         $0 start
39         exit $?
40         ;;
41   status)
42         status autolog
43         exit $?
44         ;;
45   *)
46         msg_usage "$0 {start|stop|restart|force-reload|status}"
47         exit 3
48 esac
49
50 exit $RETVAL
This page took 0.026699 seconds and 3 git commands to generate.