3 # gdm: Starts the Gnome Display Manager
5 # Version: @(#) /etc/rc.d/init.d/gdm 0.1
8 # description: Starts and stops the Gnome Display Manager at startup and
11 # config: /etc/X11/gdm/gdm-config
15 . /etc/rc.d/init.d/functions
18 if [ -f /etc/sysconfig/gdm ] ; then
22 # See how we were called.
25 # Check if the service is already running?
26 if [ ! -f /var/lock/subsys/gdm ]; then
27 msg_starting "Gnome Display Manager"
28 daemon /usr/X11R6/bin/gdm
29 touch /var/lock/subsys/gdm
31 msg_Already_Running "Gnome Display Manager"
35 msg_stopping "Gnome Display Manager"
37 rm -f /var/lock/subsys/gdm
47 echo "Usage: $0 {start|stop|status|restart|reload}"