#!/bin/sh
#

# Source function library.
. /etc/rc.d/init.d/functions
[ -x /usr/sbin/nwserv ] || exit 0
# See how we were called.
case "$1" in
  start)
	echo -n "Starting NetWare emulator-server: "
	touch /var/lock/subsys/mars_nwe
	daemon nwserv
	echo
	;;
  stop)
	echo -n "Stopping NetWare emulator-server: "
	killall -QUIT nwserv
	rm -f /var/lock/subsys/mars_nwe
	echo
	;;
  *)
	echo "Usage: mars_nwe.init {start|stop}"
	exit 1
esac

exit 0

