#!/bin/sh PIDFILE=@GDM_PID_FILE@ if test '!' -f $PIDFILE ; then echo "$PIDFILE doesn't exist, perhaps GDM isn't running" exit 1 fi # exec the kill to get the correct return code exec kill -TERM `cat $PIDFILE`