]> git.pld-linux.org Git - packages/X11.git/blame - xdm.init
- moved from xdm.initd and rewrited.
[packages/X11.git] / xdm.init
CommitLineData
24c0d079 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
18# See how we were called.
19case "$1" in
20 # Check if the service is already running?
21 if [ ! -f /var/lock/subsys/xdm ]; then
22 show Starting X Display Manager daemon
23 daemon /usr/X11R6/bin/xdm
24 else
25 echo "Starting X Display Manager already is running"
26 fi
27 touch /var/lock/subsys/xdm
28 ;;
29 stop)
30 show Shutting down X Display Manager daemon
31 killproc xdm
32 rm -f /var/lock/subsys/xdm
33 ;;
34 status)
35 status xdm
36 ;;
37 restart|reload)
38 $0 stop
39 $0 start
40 ;;
41 *)
42 echo "Usage: $0 {start|stop|status|restart|reload}"
43 exit 1
44esac
45
46exit 0
47
This page took 0.024765 seconds and 4 git commands to generate.