]> git.pld-linux.org Git - packages/gdm.git/commitdiff
- initial version based on xdm.init
authorbonkey <bonkey@bonkey.pl.eu.org>
Thu, 25 May 2000 21:25:19 +0000 (21:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gdm.init -> 1.1

gdm.init [new file with mode: 0644]

diff --git a/gdm.init b/gdm.init
new file mode 100644 (file)
index 0000000..e4acc86
--- /dev/null
+++ b/gdm.init
@@ -0,0 +1,51 @@
+#!/bin/sh
+#
+# gdm:         Starts the Gnome Display Manager
+#
+# Version:      @(#) /etc/rc.d/init.d/gdm 0.1
+#
+# chkconfig:   5 95 5
+# description: Starts and stops the Gnome Display Manager at startup and
+#              shutdown..
+#
+# config:      /etc/X11/gdm/gdm-config
+# probe:       true
+# hide:                true
+
+. /etc/rc.d/init.d/functions
+
+# Get service config
+if [ -f /etc/sysconfig/gdm ] ; then
+        . /etc/sysconfig/gdm
+fi
+
+# See how we were called.
+case "$1" in
+  start)
+       # Check if the service is already running?
+       if [ ! -f /var/lock/subsys/gdm ]; then
+               msg_starting "Gnome Display Manager"
+               daemon /usr/X11R6/bin/gdm
+               touch /var/lock/subsys/gdm
+       else
+               msg_Already_Running "Gnome Display Manager"
+       fi
+       ;;
+  stop)
+       msg_stopping "Gnome Display Manager"
+       killproc gdm
+       rm -f /var/lock/subsys/gdm
+       ;;
+  status)
+       status gdm
+       ;;
+  restart|reload)
+       $0 stop
+       $0 start
+       ;;
+  *)
+       echo "Usage: $0 {start|stop|status|restart|reload}"
+       exit 1
+esac
+
+exit 0
This page took 0.034646 seconds and 4 git commands to generate.