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 # See how we were called.
28 # Check if the service is already running?
29 if [ ! -f /var/lock/subsys/gdm ]; then
30 msg_starting "Gnome Display Manager"
31 start-stop-daemon --start -b --exec /usr/sbin/gdm ${GDM_VT}
34 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/gdm
36 msg_already_running "Gnome Display Manager"
40 if [ -f /var/lock/subsys/gdm ]; then
41 msg_stopping "Gnome Display Manager"
43 rm -f /var/lock/subsys/gdm
45 msg_not_running "Gnome Display Manager"
58 msg_usage "$0 {start|stop|restart|force-reload|status}"