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
23 # See how we were called.
26 # Check if the service is already running?
27 if [ ! -f /var/lock/subsys/gdm ]; then
28 msg_starting "Gnome Display Manager"
31 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/gdm
33 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"
55 msg_usage "$0 {start|stop|restart|force-reload|status}"