[Lunar-commits] CVS: crater/gnome-desktop/gdm/init.d gdm,NONE,1.1

Jan Eidtmann cmak at lunar-linux.org
Thu Mar 17 07:42:12 UTC 2005


Update of /var/cvs/lunar/crater/gnome-desktop/gdm/init.d
In directory espresso.foo-projects.org:/tmp/cvs-serv28401/gnome-desktop/gdm/init.d

Added Files:
	gdm 
Log Message:
Gnome 2.10

--- NEW FILE: gdm ---
#!/bin/bash

# chkconfig: 5 95 05
# description: gdm is gnome's version of the xdm graphical login manager
# processname: /usr/bin/gdm-binary
# sigreload: HUP

. /lib/lsb/init-functions $1

stop() {
  kill `cat /var/run/gdm.pid`
  evaluate_retval
}
 
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