#!/bin/sh
# Begin $rc_base/init.d/gdm

# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org

#$LastChangedBy: bdubbs $
#$Date: 2005-08-01 13:29:19 -0600 (Mon, 01 Aug 2005) $

. /etc/sysconfig/rc
. $rc_functions

export PATH=$PATH:/opt/gnome-2.10/bin:/opt/gnome-2.10/sbin

case "$1" in
	start)
		boot_mesg "Starting GDM..."
		loadproc gdm
		;;

	stop)
		boot_mesg "Stopping GDM..."
		if [ -f /var/run/gdm.pid ]; then
			loadproc gdm-stop
		fi
		;;

	reload)
		boot_mesg "Reloading GDM..."
		loadproc gdm-safe-restart
		;;

	restart)
		boot_mesg "Restarting GDM..."
		loadproc gdm-restart
		;;

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

# End $rc_base/init.d/gdm
