home *** CD-ROM | disk | FTP | other *** search
/ tusportal.tus.k12.pa.us / tusportal.tus.k12.pa.us.tar / tusportal.tus.k12.pa.us / Wyse / latest-image.raw / 0.img / usr / sbin / gdm-stop < prev    next >
Text File  |  2010-12-20  |  214b  |  10 lines

  1. #!/bin/sh
  2.  
  3. PIDFILE=/var/run/gdm.pid
  4. if test '!' -f $PIDFILE ; then
  5.     echo "$PIDFILE doesn't exist, perhaps GDM isn't running"
  6.     exit 1
  7. fi
  8. # exec the kill to get the correct return code
  9. exec kill -TERM `cat $PIDFILE`
  10.