#!/bin/sh
#
# Startup script for the WINGs Display Manager
#
# chkconfig: 036 99 10
# description: This is a modification of XFree86's xdm package for graphically
#              handling authentication and system login.
#
# processname: wdm
# pidfile: /var/run/wdm.pid
# config: /etc/X11/wdm/config

# Source function library.
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
	echo -n "Starting wdm: "
	daemon /usr/X11R6/bin/wdm
	echo
	touch /var/lock/subsys/wdm
	;;
  stop)
	echo -n "Shutting down wdm: "
	killproc wdm
	echo
	rm -f /var/lock/subsys/wdm
	rm -f /var/run/wdm.pid
	;;
  status)
	status wdm
	;;
  restart)
	$0 stop
	$0 start
	;;
  *)
	echo "Usage: $0 {start|stop|restart|status}"
	exit 1
esac

exit 0
