#! /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.
if [ ${NETWORKING} = "no" ]
then
	exit 0
fi

# See how we were called.
case "$1" in
  start)
	echo -n "Starting ipxd services: "
	daemon ipxd

	echo
	touch /var/lock/subsys/ipxd
	;;
  stop)
	echo -n "Stopping zebra services: "
	killproc ipxd

	echo
	rm -f /var/lock/subsys/ipxd
	;;
  status)
	status ipxd
	;;
  restart|reload)
	$0 stop
	$0 start
	;;
  *)
	echo "Usage: ipxd {start|stop|status|restart|reload}"
	exit 1
esac

exit 0
