# Specifies the TCP port number on which the server will listen for
# connections. The default port number is 7100.
XFS_PORT="-1"
XFS_OPTIONS=
Changed files:
xfs.init -> 1.3
xfs.sysconfig -> 1.1
# 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
--- /dev/null
+# Customized setings for xfs
+
+# Specifies the TCP port number on which the server will listen for
+# connections. The default port number is 7100.
+XFS_PORT="-1"
+
+XFS_OPTIONS=
+
+# Define nice level for xfs
+SERVICE_RUN_NICE_LEVEL="+0"