3 # xdm: Starts the X Display Manager
5 # Version: @(#) /etc/rc.d/init.d/xdm 1.3
8 # description: Starts and stops the X Display Manager at startup and
9 # shutdown. can run one of several display managers; gdm, kdm,
10 # or xdm, in that order of preferential treatment.
12 # config: /etc/X11/xdm/xdm-config
16 . /etc/rc.d/init.d/functions
19 if [ -f /etc/sysconfig/xdm ] ; then
24 # See how we were called.
27 # Check if the service is already running?
28 if [ ! -f /var/lock/subsys/xdm ]; then
29 msg_starting "X Display Manager"
30 daemon /usr/X11R6/bin/xdm
31 touch /var/lock/subsys/xdm
33 msg_already_running "X Display Manager"
38 if [ -f /var/lock/subsys/xdm ]; then
39 msg_stopping "X Display Manager"
42 rm -f /var/lock/subsys/xdm
44 msg_not_running "X Display Manager"
61 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"