]> git.pld-linux.org Git - packages/autolog.git/blame - autolog.init
- dropped pre-cvs changelog
[packages/autolog.git] / autolog.init
CommitLineData
99f8c6a6
TO
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
638fbd45 14RETVAL=0
99f8c6a6
TO
15# See how we were called.
16case "$1" in
17 start)
18 if [ ! -f /var/lock/subsys/autolog ]; then
19 msg_starting "Autolog"
b8289c52 20 daemon autolog < /dev/null
99f8c6a6
TO
21 RETVAL=$?
22 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/autolog
23 else
e22f31c9 24 msg_already_running "Autolog"
99f8c6a6
TO
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
e22f31c9 33 msg_not_running "Autolog"
99f8c6a6
TO
34 fi
35 ;;
638fbd45 36 restart|force-reload)
99f8c6a6
TO
37 $0 stop
38 $0 start
638fbd45 39 exit $?
99f8c6a6
TO
40 ;;
41 status)
42 status autolog
638fbd45 43 exit $?
99f8c6a6 44 ;;
ffda161b 45 *)
638fbd45 46 msg_usage "$0 {start|stop|restart|force-reload|status}"
47 exit 3
99f8c6a6
TO
48esac
49
50exit $RETVAL
This page took 0.093957 seconds and 4 git commands to generate.