]> git.pld-linux.org Git - packages/XFree86.git/blame - xdm.init
- p1 for patch 26
[packages/XFree86.git] / xdm.init
CommitLineData
5e2a6703 1#!/bin/sh
2#
3# xdm: Starts the X Display Manager
4#
5# Version: @(#) /etc/rc.d/init.d/xdm 1.3
6#
7# chkconfig: 5 95 5
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.
11#
12# config: /etc/X11/xdm/xdm-config
13# probe: true
14# hide: true
15
16. /etc/rc.d/init.d/functions
17
bb6a1b62 18# Get service config
19if [ -f /etc/sysconfig/xdm ] ; then
20 . /etc/sysconfig/xdm
21fi
22
5e2a6703 23# See how we were called.
24case "$1" in
45c6df21 25 start)
5e2a6703 26 # Check if the service is already running?
45c6df21 27 if [ -f /var/lock/subsys/xdm ]; then
ce48ad5a 28 msg_Already_Running "X Display Manager"
45c6df21 29 else
ce48ad5a 30 msg_starting "X Display Manager"
5e2a6703 31 daemon /usr/X11R6/bin/xdm
45c6df21 32 touch /var/lock/subsys/xdm
5e2a6703 33 fi
5e2a6703 34 ;;
35 stop)
ce48ad5a 36 msg_stopping "X Display Manager"
5e2a6703 37 killproc xdm
38 rm -f /var/lock/subsys/xdm
39 ;;
40 status)
41 status xdm
42 ;;
43 restart|reload)
44 $0 stop
45 $0 start
46 ;;
47 *)
ce48ad5a 48 msg_Usage "$0 {start|stop|status|restart|reload}"
5e2a6703 49 exit 1
50esac
51
52exit 0
This page took 0.046082 seconds and 4 git commands to generate.