+ sayonara old_pid!
[jleu-quagga.git] / redhat / isisd.init
blob0d762c0430014f8f7f9593f475cedf864b126870
1 #!/bin/bash
3 # chkconfig: 2345 16 84
4 # description: An ISIS routing engine for use with Quagga
6 # processname: isisd
7 # config: /etc/quagga/isisd.conf
9 # source function library
10 . /etc/rc.d/init.d/functions
12 # Get network config
13 . /etc/sysconfig/network
15 # Check that networking is up.
16 [ "${NETWORKING}" = "no" ] && exit 0
18 # The process must be configured first.
19 [ -f /etc/quagga/isisd.conf ] || exit 0
21 RETVAL=0
23 prog="isisd"
25 case "$1" in
26 start)
27 echo -n $"Starting $prog: "
28 daemon /usr/sbin/isisd -d
29 RETVAL=$?
30 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/isisd
31 echo
33 stop)
34 echo -n $"Shutting down $prog: "
35 killproc isisd
36 RETVAL=$?
37 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/isisd
38 echo
40 restart|reload)
41 $0 stop
42 $0 start
43 RETVAL=$?
45 condrestart)
46 if [ -f /var/lock/subsys/isisd ]; then
47 $0 stop
48 $0 start
50 RETVAL=$?
52 status)
53 status isisd
54 RETVAL=$?
57 echo $"Usage: $0 {start|stop|restart|reload|condrestart|status}"
58 exit 1
59 esac
61 exit $RETVAL