]> git.pld-linux.org Git - packages/XFree86.git/blob - xfs.initd
patches from RH 6.0
[packages/XFree86.git] / xfs.initd
1 #!/bin/sh
2 #
3 # xfs:       Starts the X Font Server
4 #
5 # Version:      @(#) /etc/rc.d/init.d/xfs 1.0
6 #
7 # chkconfig: 345 90 10
8 # description: Starts and stops the X Font Server at boot time and shutdown.
9 #
10 # processname: xfs
11 # config: /etc/X11/fs/config
12
13 # Source function library.
14 . /etc/rc.d/init.d/functions
15
16 # See how we were called.
17 case "$1" in
18   start)
19         show Starting X Font Server
20         daemon /usr/X11R6/bin/xfs
21         touch /var/lock/subsys/xfs
22         ;;
23   stop)
24         show Shutting down X Font Server
25         killproc xfs
26         rm -f /var/lock/subsys/xfs
27         ;;
28   status)
29         status xfs
30         ;;
31   restart)
32         $0 stop
33         $0 start
34         ;;
35   *)
36         echo "Usage: $0 {start|stop|status|restart}"
37         exit 1
38 esac
39
40 exit 0
41
This page took 0.0232 seconds and 3 git commands to generate.