45 lines
783 B
Bash
45 lines
783 B
Bash
#! /bin/sh
|
|
# chkconfig: - 55 55
|
|
# description: ipxripd is an implementation of Novell's RIP and SAP
|
|
# protocols.
|
|
# processname: ipxd
|
|
|
|
# Source function library.
|
|
. /etc/rc.d/init.d/functions
|
|
|
|
# Get config.
|
|
. /etc/sysconfig/network
|
|
|
|
# Check that networking is up.
|
|
[ ${NETWORKING} = "no" ] && exit 0
|
|
|
|
# See how we were called.
|
|
case "$1" in
|
|
start)
|
|
echo -n "Starting ipxd services: "
|
|
daemon ipxd
|
|
[ $? -eq 0 ] && touch /var/lock/subsys/ipxd
|
|
echo
|
|
;;
|
|
stop)
|
|
echo -n "Stopping ipxd services: "
|
|
killproc ipxd
|
|
rm -f /var/lock/subsys/ipxd
|
|
echo
|
|
;;
|
|
status)
|
|
status ipxd
|
|
;;
|
|
restart|reload)
|
|
$0 stop
|
|
$0 start
|
|
;;
|
|
condrestart)
|
|
[ -f /var/lock/subsys/ipxd ] && $0 restart
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop|status|restart|reload|condrestart}"
|
|
exit 1
|
|
esac
|
|
|
|
exit 0
|