summaryrefslogtreecommitdiff
path: root/utils/gdm-safe-restart.in
blob: 8b75a97f9c688f4a80a6985028eeb6f2e899882d (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 -USR1 `cat $PIDFILE`