]> git.pld-linux.org Git - packages/X11.git/blame - xfs.init
- added sysconfig config file for xfs:
[packages/X11.git] / xfs.init
CommitLineData
bb7300c7 1#!/bin/sh
2#
3# xfs: Starts the X Font Server
4#
cc00956b 5# Version: $Revision$
bb7300c7 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
e3d6dda9 17# Get service config
18if [ -f /etc/sysconfig/xfs ] ; then
19 . /etc/sysconfig/xfs
20fi
21
bb7300c7 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
27 show Starting X Font Server
28 rm -fr /tmp/.font-unix
e3d6dda9 29 daemon xfs \
30 $([ -n "$XFS_PORT" ] && echo "-port $XFS_PORT") \
31 $([ -n "$XFS_OPTIONS" ] && echo "-port $XFS_PORT")
bb7300c7 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
62esac
63
64exit 0
This page took 0.034363 seconds and 4 git commands to generate.