3 # xfs: Starts the X Font Server
8 # description: Starts and stops the X Font Server at boot time and shutdown.
11 # config: /etc/X11/fs/config
14 # Source function library.
15 . /etc/rc.d/init.d/functions
18 if [ -f /etc/sysconfig/xfs ] ; then
22 # See how we were called.
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
30 $([ -n "$XFS_PORT" ] && echo "-port $XFS_PORT") \
31 $([ -n "$XFS_OPTIONS" ] && echo "-port $XFS_PORT")
33 echo "X Font Server already is running"
35 touch /var/lock/subsys/xfs
38 show Shutting down X Font Server
40 rm -f /var/lock/subsys/xfs
50 if [ -f /var/lock/subsys/xfs ]; then
51 show "Reload X Font Server configuration"
56 echo "Reload X Font Server not runed"
60 echo "*** Usage: xfs {start|stop|status|restart|reload}"