]> git.pld-linux.org Git - packages/X11.git/commitdiff
- moved from xfs.initd (also rewrited adnd added reload).
authorkloczek <kloczek@pld-linux.org>
Thu, 9 Dec 1999 08:15:52 +0000 (08:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    xfs.init -> 1.1

xfs.init [new file with mode: 0644]

diff --git a/xfs.init b/xfs.init
new file mode 100644 (file)
index 0000000..081ad4d
--- /dev/null
+++ b/xfs.init
@@ -0,0 +1,57 @@
+#!/bin/sh
+#
+# xfs:         Starts the X Font Server
+#
+# Version:      $Release:$
+#
+# chkconfig:   345 90 10
+# description: Starts and stops the X Font Server at boot time and shutdown.
+#
+# processname: xfs
+# config:      /etc/X11/fs/config
+# hide:                true
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+# See how we were called.
+case "$1" in
+  start)
+       # Check if the service is already running?
+       if [ ! -f /var/lock/subsys/xfs ]; then
+               show Starting X Font Server
+               rm -fr /tmp/.font-unix
+               daemon xfs -droppriv -daemon -port -1
+       else
+               echo "X Font Server already is running"
+       fi
+       touch /var/lock/subsys/xfs
+       ;;
+  stop)
+       show Shutting down X Font Server
+       killproc xfs
+       rm -f /var/lock/subsys/xfs
+       ;;
+  status)
+       status xfs
+       ;;
+  restart)
+       $0 stop
+       $0 start
+       ;;
+  reload)
+       if [ -f /var/lock/subsys/xfs ]; then
+               show "Reload X Font Server configuration"
+               killproc xfs -USR1
+               deltext;
+               ok;
+       else
+               echo "Reload X Font Server not runed"
+       fi
+       ;;
+  *)
+       echo "*** Usage: xfs {start|stop|status|restart|reload}"
+       exit 1
+esac
+
+exit 0
This page took 0.029306 seconds and 4 git commands to generate.