]> git.pld-linux.org Git - packages/X11.git/commitdiff
- added sysconfig config file for xfs:
authorkloczek <kloczek@pld-linux.org>
Fri, 17 Dec 1999 15:45:20 +0000 (15:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
# 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
xfs.sysconfig [new file with mode: 0644]

index a6fe744af384a4ec8f9cba0dba394266ef1d7d71..b40c8b5a70ee43b8e75af80592bd2ba9356ea852 100644 (file)
--- a/xfs.init
+++ b/xfs.init
 # 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 (file)
index 0000000..4244b89
--- /dev/null
@@ -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"
This page took 0.216708 seconds and 4 git commands to generate.