CVS: moonbase/gnome2-core/gdm/init.d gdm,1.4,1.5

nhudson at lunar-linux.org nhudson at lunar-linux.org
Tue Oct 7 04:02:46 GMT 2003


Update of /var/cvs/lunar/moonbase/gnome2-core/gdm/init.d
In directory dbguin.lunar-linux.org:/tmp/cvs-serv27468/init.d

Modified Files:
	gdm 
Log Message:

Commiting changes to gdm, adding a POST_INSTALL to notify the user of adding /opt/lunar/gnome/2.4/bin to their /etc/profile for now till we can find a better way of doing this.  Also updating to new version 2.4.4.3 and changing the md5sum and adding a patch that fixes some problems with pam


Index: gdm
===================================================================
RCS file: /var/cvs/lunar/moonbase/gnome2-core/gdm/init.d/gdm,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- gdm	13 Sep 2003 02:38:31 -0000	1.4
+++ gdm	7 Oct 2003 04:02:44 -0000	1.5
@@ -7,26 +7,21 @@
 
 . /lib/lsb/init-functions $1
 
-restart() {
-  PIDFILE=`grep '^PidFile=' /etc/X11/gdm/gdm.conf | sed -e 's/^PidFile=//'`
-
-  if test x$PIDFILE = x ; then
-    echo $RESULT_WARN
-    echo "Can't find the PID file in the configuration file, going to try:"
-    echo "/var/run/gdm.pid"
-    PIDFILE=/var/run/gdm.pid
-  fi
-
-  if test '!' -f $PIDFILE ; then
-    echo $RESULT_WARN
-  fi
-
-  # exec the kill to get the correct return code
-  exec kill -USR1 `cat $PIDFILE`
+stop() {
+  kill `cat /var/run/gdm.pid`
+  evaluate_retval
 }
-
-forcerestart() {
-  echo "poo"
-  
+ 
+status() {
+  if [ -f /var/run/gdm.pid ]; then
+    if ps -p `cat /var/run/gdm.pid` > /dev/null; then
+      echo "gdm is running with Process ID $(cat /var/run/gdm.pid)"
+    else
+      echo "gdm is not running but /var/run/gdm.pid exists"
+      return 1
+    fi
+  else
+    echo "gdm is not running"
+  fi
 }
 




More information about the Lunar-commits mailing list