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
20 if [ -f /etc/sysconfig/gdm ]; then
25 # Check if the service is already running?
26 if [ -f /var/lock/subsys/gdm ]; then
27 msg_already_running "Gnome Display Manager"
31 msg_starting "Gnome Display Manager"
32 start-stop-daemon --start -b --exec /usr/sbin/gdm
35 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/gdm
39 if [ ! -f /var/lock/subsys/gdm ]; then
40 msg_not_running "Gnome Display Manager"
44 msg_stopping "Gnome Display Manager"
46 rm -f /var/lock/subsys/gdm
50 if [ ! -f /var/lock/subsys/gdm ]; then
51 msg_not_running "Gnome Display Manager"
61 # See how we were called.
84 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"