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 open /usr/bin/gdm
30 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/gdm
32 msg_already_running "Gnome Display Manager"
37 if [ -f /var/lock/subsys/gdm ]; then
38 msg_stopping "Gnome Display Manager"
40 rm -f /var/lock/subsys/gdm
42 msg_not_running "Gnome Display Manager"
54 msg_usage "$0 {start|stop|restart|reload|status}"