Bug#240993: gdm doesn't restart correctly upon upgrade

Josselin Mouette Josselin Mouette <joss@debian.org>, 240993@bugs.debian.org
Tue, 30 Mar 2004 10:38:58 +0200


Package: gdm
Version: 2.4.4.7-1
Severity: important
Tags: sid patch

The gdm package in sid isn't restarted correctly upon upgrade and 
requires manual intervention. Adding the following code to the postinst 
should fix this:

# Soft restart of the display manager
                                                                                
fifofile=/var/lib/gdm/.gdminfo
pidfile=/var/run/gdm.pid
                                                                                
# NOTE: the binary on disk most likely has changed, so we can't use --exec
if start-stop-daemon --stop --quiet --name gdm --signal 0 --pid "$pidfile"; then  if [ -w "$fifofile" ]; then
    (echo;echo SOFT_RESTART) >> "$fifofile"
  fi
fi

Regards,
-- 
 .''`.           Josselin Mouette        /\./\
: :' :           josselin.mouette@ens-lyon.org
`. `'                        joss@debian.org
  `-  Debian GNU/Linux -- The power of freedom