From e3d6dda9e7130cc14f84a28c77d2aa58ae09b0bd Mon Sep 17 00:00:00 2001 From: kloczek Date: Fri, 17 Dec 1999 15:45:20 +0000 Subject: [PATCH] - added sysconfig config file 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= Changed files: xfs.init -> 1.3 xfs.sysconfig -> 1.1 --- xfs.init | 9 ++++++++- xfs.sysconfig | 10 ++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 xfs.sysconfig diff --git a/xfs.init b/xfs.init index a6fe744..b40c8b5 100644 --- a/xfs.init +++ b/xfs.init @@ -14,6 +14,11 @@ # 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) @@ -21,7 +26,9 @@ case "$1" in 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 diff --git a/xfs.sysconfig b/xfs.sysconfig new file mode 100644 index 0000000..4244b89 --- /dev/null +++ b/xfs.sysconfig @@ -0,0 +1,10 @@ +# 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" -- 2.44.0