# Source function library.
. /etc/rc.d/init.d/functions
+# Get service config
+if [ -f /etc/sysconfig/xfs ] ; then
+ . /etc/sysconfig/xfs
+fi
+
# See how we were called.
case "$1" in
start)
if [ ! -f /var/lock/subsys/xfs ]; then
show Starting X Font Server
rm -fr /tmp/.font-unix
- daemon xfs -droppriv -daemon -port -1
+ daemon xfs \
+ $([ -n "$XFS_PORT" ] && echo "-port $XFS_PORT") \
+ $([ -n "$XFS_OPTIONS" ] && echo "-port $XFS_PORT")
else
echo "X Font Server already is running"
fi