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 msg_starting "X Font Server"
28 rm -fr /tmp/.font-unix
30 $([ -n "$XFS_PORT" ] && echo "-port $XFS_PORT") \
31 $([ -n "$XFS_OPTIONS" ] && echo "$XFS_OPTIONS")
33 msg_already_running "X Font Server"
35 touch /var/lock/subsys/xfs
38 msg_stopping "X Font Server"
40 rm -f /var/lock/subsys/xfs
50 if [ -f /var/lock/subsys/xfs ]; then
51 msg_reloading "X Font Server"
54 msg_not_running "X Font Server"
58 msg_usage "$0 {start|stop|status|restart|reload}"