]> git.pld-linux.org Git - packages/X11.git/blobdiff - xfs.init
- added sysconfig config file for xfs:
[packages/X11.git] / xfs.init
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
This page took 0.031762 seconds and 4 git commands to generate.