summaryrefslogtreecommitdiff
path: root/gdm-stop.in
diff options
context:
space:
mode:
authorGeorge Lebl <jirka@5z.com>2002-08-15 19:13:55 +0000
committerGeorge Lebl <jirka@src.gnome.org>2002-08-15 19:13:55 +0000
commitf93e3de07f160c3af88fa6f9fb686cbbe999e5aa (patch)
tree2f6ffa67525a88ffdae870930aa0a149e2d2c84b /gdm-stop.in
parent7a7f30f536df6cdc951ea2b9eea3e0b183e5ad69 (diff)
downloadgdm-f93e3de07f160c3af88fa6f9fb686cbbe999e5aa.tar.gz
remove some dead code. Ensure euid's in more places. open .xsession-errors
Thu Aug 15 12:04:24 2002 George Lebl <jirka@5z.com> * daemon/gdm.c, daemon/slave.c: remove some dead code. Ensure euid's in more places. open .xsession-errors even on nfs dirs properly. For the Init/PreSession/PostSession scripts always setup the GDM_PARENT_* stuff for Xnest displays. Don't use temp files, but name the temporary auth file by the display name and whack it on server stop. The Init/PreSession/PostSession scripts now execute /<displayname>, if not found then /<hostname>, if not found and XDMCP then /XDMCP, if not found and flexi then /Flexi, and only if none of those are found then /Default. * daemon/errorgui.c: show label and entry in the question dialog, fixes problems when asking for questions during autologin. Also set cursor to pointer. * daemon/slave.c: set cursor to pointer after forking slave. This should fix possible busy cursor stuck after an autologin. * config/PostSession: spelling fix * daemon/verify-pam.c: add extra message for automatic login for standalone conversation thingie. This uses already translated string. * daemon/gdm.c: wait 2 seconds between killing local servers, otherwise things go very very bad on some machines (such as eating my keyboard on mine) * configure.in, Makefile.am, gdm-stop.in: new script to just SIGTERM the gdm binary. Useful for debugging
Diffstat (limited to 'gdm-stop.in')
-rwxr-xr-xgdm-stop.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdm-stop.in b/gdm-stop.in
new file mode 100755
index 00000000..0474c0ff
--- /dev/null
+++ b/gdm-stop.in
@@ -0,0 +1,13 @@
+#!/bin/sh
+PIDFILE=`grep '^PidFile=' @sysconfdir@/gdm/gdm.conf | sed -e 's/^PidFile=//'`
+if test x$PIDFILE = x ; then
+ echo "Can't find the PID file in the configuration file, going to try:"
+ echo "/var/run/gdm.pid"
+ PIDFILE=/var/run/gdm.pid
+fi
+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`