]> git.pld-linux.org Git - packages/XFree86.git/blame - xfs.init
- moved %%{_includedir}{,/X11} from base to -libs (may be used without base)
[packages/XFree86.git] / xfs.init
CommitLineData
5716bf05 1#!/bin/sh
2#
3# xfs: Starts the X Font Server
4#
d99acf33 5# Version: $Revision$
5716bf05 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
91d01143 17# Get service config
18if [ -f /etc/sysconfig/xfs ] ; then
19 . /etc/sysconfig/xfs
20fi
21
5716bf05 22# See how we were called.
23case "$1" in
24 start)
25 # Check if the service is already running?
26 if [ ! -f /var/lock/subsys/xfs ]; then
ce48ad5a 27 msg_starting "X Font Server"
5716bf05 28 rm -fr /tmp/.font-unix
91d01143 29 daemon xfs \
30 $([ -n "$XFS_PORT" ] && echo "-port $XFS_PORT") \
ce48ad5a 31 $([ -n "$XFS_OPTIONS" ] && echo "$XFS_OPTIONS")
5716bf05 32 else
1cffb335 33 msg_Already_Running "X Font Server"
5716bf05 34 fi
35 touch /var/lock/subsys/xfs
36 ;;
37 stop)
ce48ad5a 38 msg_stopping "X Font Server"
5716bf05 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
170cf6c0 51 msg_reloading "X Font Server"
5716bf05 52 killproc xfs -USR1
5716bf05 53 else
ce48ad5a 54 msg_Not_Running "X Font Server"
5716bf05 55 fi
56 ;;
57 *)
ce48ad5a 58 msg_Usage "$0 {start|stop|status|restart|reload}"
5716bf05 59 exit 1
60esac
61
62exit 0
This page took 0.034574 seconds and 4 git commands to generate.