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
23 # See how we were called.
26 # Check if the service is already running?
27 if [ ! -f /var/lock/subsys/xfs ]; then
28 msg_starting "X Font Server"
29 rm -fr /tmp/.font-unix
31 $([ -n "$XFS_PORT" ] && echo "-port $XFS_PORT") \
32 $([ -n "$XFS_OPTIONS" ] && echo "$XFS_OPTIONS")
34 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xfs
36 msg_already_running "X Font Server"
40 if [ -f /var/lock/subsys/xfs ]; then
41 msg_stopping "X Font Server"
43 rm -f /var/lock/subsys/xfs
45 msg_not_running "X Font Server"
58 if [ -f /var/lock/subsys/xfs ]; then
59 msg_reloading "X Font Server"
63 msg_not_running "X Font Server" >&2
68 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"