summaryrefslogtreecommitdiff
path: root/utils/gdm-stop.in
blob: 546c6b51aff0265d1c6976151d47fae580661af7 (plain)
1
2
3
4
5
6
7
8
9
#!/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`