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
23 # See how we were called.
25 # Check if the service is already running?
26 if [ ! -f /var/lock/subsys/xdm ]; then
27 show Starting X Display Manager daemon
28 daemon /usr/X11R6/bin/xdm
30 echo "Starting X Display Manager already is running"
32 touch /var/lock/subsys/xdm
35 show Stopping X Display Manager daemon
37 rm -f /var/lock/subsys/xdm
47 echo "Usage: $0 {start|stop|status|restart|reload}"