]>
Commit | Line | Data |
---|---|---|
9e2c860d | 1 | #!/bin/sh |
5271f2ac | 2 | # ver. 0.5 |
536b50c6 JR |
3 | # |
4 | # | |
5 | # xdm: Starts the X Display Manager (gdm / kdm / xdm) | |
6 | # | |
7 | # Version: @(#) /etc/rc.d/init.d/xdm 1.3 | |
8 | # | |
9 | # chkconfig: 5 95 5 | |
10 | # description: Starts and stops the X Display Manager at startup and shutdown. | |
11 | # can run one of several display managers; gdm, kdm, or xdm, in that order of | |
12 | # preferential treatment. | |
13 | # | |
14 | # config: /etc/X11/xdm/xdm-config | |
15 | # probe: true | |
16 | # hide: true | |
5271f2ac JR |
17 | |
18 | . /etc/rc.d/init.d/functions | |
19 | ||
20 | # See how we were called. | |
21 | case "$1" in | |
22 | start) | |
23 | show Starting X Daemon | |
9e2c860d JR |
24 | daemon /usr/X11R6/bin/xdm |
25 | touch /var/lock/subsys/xdm | |
5271f2ac JR |
26 | ;; |
27 | stop) | |
28 | show Shuting down X daemon | |
9e2c860d JR |
29 | killproc xdm |
30 | rm -f /var/lock/subsys/xdm | |
31 | ;; | |
32 | status) | |
a36f9c45 | 33 | status xdm |
9e2c860d JR |
34 | ;; |
35 | restart) | |
36 | $0 stop | |
37 | $0 start | |
5271f2ac JR |
38 | ;; |
39 | *) | |
9e2c860d | 40 | echo "Usage: $0 {start|stop|status|restart}" |
5271f2ac JR |
41 | exit 1 |
42 | esac | |
43 | ||
44 | exit 0 | |
45 |