]> git.pld-linux.org Git - packages/gdm2.20.git/commitdiff
- /etc/rc.d/init.d script for gdm
authormkochano <mkochano@pld-linux.org>
Sat, 12 Feb 2000 23:56:47 +0000 (23:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gdm.initd -> 1.1

gdm.initd [new file with mode: 0644]

diff --git a/gdm.initd b/gdm.initd
new file mode 100644 (file)
index 0000000..de66d22
--- /dev/null
+++ b/gdm.initd
@@ -0,0 +1,45 @@
+#!/bin/sh
+# ver. 0.5
+#
+#
+# xdm:       Starts the X Display Manager (gdm / kdm / xdm)
+#
+# Version:      @(#) /etc/rc.d/init.d/gdm 1.3
+#
+# chkconfig: 5 95 5
+# description: Starts and stops the X Display Manager at startup and shutdown.
+# can run one of several display managers; gdm, kdm, or xdm, in that order of
+# preferential treatment.
+#
+# config: /etc/X11/gdm/gdm.conf
+# probe: true
+# hide: true
+
+. /etc/rc.d/init.d/functions
+
+# See how we were called.
+case "$1" in
+  start)
+       show Starting X Daemon
+       daemon /usr/X11R6/bin/gdm
+       touch /var/lock/subsys/gdm
+       ;;
+  stop)
+       show Shuting down X daemon
+       killproc gdm
+       rm -f /var/lock/subsys/gdm
+       ;;
+  status)
+       status gdm
+       ;;
+  restart)
+       $0 stop
+       $0 start
+       ;;
+  *)
+       echo "Usage: $0 {start|stop|status|restart}"
+       exit 1
+esac
+
+exit 0
+
This page took 0.038097 seconds and 4 git commands to generate.