#! /bin/sh
#
# Start/stop the nwserv daemons.
#
# AppleTalk daemons. Make sure not to start atalkd in the background:
# its data structures must have time to stablize before running the
# other processes.
#
# the pidof stuff is there to handle crashes
#

. /etc/rc.d/init.d/functions


case "$1" in

#
# Start the netware server processes.
#
'start')

	echo -n 'start netware daemons:'
	/usr/sbin/nwserv;	echo -n ' nwserv'
	echo '.'
	;;

#
# Stop the netware server processes.
#

'stop')

	echo -n 'stopping netware daemons:'

	kill -9 `pidof nwserv nwbind ncpserv nwconn`

	echo '.'
	;;

#
# Usage statement.
#

*)
	echo "usage: $0 {start|stop}"
	exit 1
	;;
esac
