]> git.pld-linux.org Git - packages/X11.git/blob - xfs.init
- added handling mouse events,
[packages/X11.git] / xfs.init
1 #!/bin/sh
2 #
3 # xfs:          Starts the X Font Server
4 #
5 # Version:      $Revision$
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 # hide:         true
13
14 # Source function library.
15 . /etc/rc.d/init.d/functions
16
17 # Get service config
18 if [ -f /etc/sysconfig/xfs ] ; then
19         . /etc/sysconfig/xfs
20 fi
21
22 # See how we were called.
23 case "$1" in
24   start)
25         # Check if the service is already running?
26         if [ ! -f /var/lock/subsys/xfs ]; then
27                 show Starting X Font Server
28                 rm -fr /tmp/.font-unix
29                 daemon xfs \
30                         $([ -n "$XFS_PORT" ] && echo "-port $XFS_PORT") \
31                         $([ -n "$XFS_OPTIONS" ] && echo "-port $XFS_PORT")
32         else
33                 echo "X Font Server already is running"
34         fi
35         touch /var/lock/subsys/xfs
36         ;;
37   stop)
38         show Shutting down X Font Server
39         killproc xfs
40         rm -f /var/lock/subsys/xfs
41         ;;
42   status)
43         status xfs
44         ;;
45   restart)
46         $0 stop
47         $0 start
48         ;;
49   reload)
50         if [ -f /var/lock/subsys/xfs ]; then
51                 show "Reload X Font Server configuration"
52                 killproc xfs -USR1
53                 deltext;
54                 ok;
55         else
56                 echo "Reload X Font Server not runed"
57         fi
58         ;;
59   *)
60         echo "*** Usage: xfs {start|stop|status|restart|reload}"
61         exit 1
62 esac
63
64 exit 0
This page took 0.072135 seconds and 3 git commands to generate.