Changes: postinst script exits with 0 if kill -HUP fails.

RevBy: Alexey Shilov
pull/1/head
Juha Lintula 14 years ago
parent b7ac6a0b8a
commit b2b373bd12

@ -8,7 +8,12 @@ elif [ "$1" = "triggered" ]; then
# Installation of some other package may have caused applauncherd credentials to go stale,
# ask applauncherd to re-exec to refresh the credentials.
if [ -s /var/run/applauncherd.lock ] && [ -d /proc/`cat /var/run/applauncherd.lock` ]; then
kill -HUP `cat /var/run/applauncherd.lock`
if [ -s /var/run/applauncherd.lock ] && [ -d /proc/`cat /var/run/applauncherd.lock` ];
then
if ! kill -HUP `cat /var/run/applauncherd.lock`
then
echo "Warning! Sending SIGHUP to pid $(cat /var/run/applauncherd.lock) failed."
exit 0
fi
fi
fi

Loading…
Cancel
Save