[Pkg-utopia-commits] r3759 - in /packages/experimental/hal/debian: changelog hal.postinst

biebl at users.alioth.debian.org biebl at users.alioth.debian.org
Wed Nov 17 20:02:05 UTC 2010


Author: biebl
Date: Wed Nov 17 20:01:58 2010
New Revision: 3759

URL: http://svn.debian.org/wsvn/pkg-utopia/?sc=1&rev=3759
Log:
debian/hal.postinst: Restart hal on upgrades.

Modified:
    packages/experimental/hal/debian/changelog
    packages/experimental/hal/debian/hal.postinst

Modified: packages/experimental/hal/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/experimental/hal/debian/changelog?rev=3759&op=diff
==============================================================================
--- packages/experimental/hal/debian/changelog (original)
+++ packages/experimental/hal/debian/changelog Wed Nov 17 20:01:58 2010
@@ -11,6 +11,7 @@
     - debian/hal.postinst: When being triggered by an .fdi file update, query
       D-Bus to get the main pid. If hald is running kill the process and
       restart it via D-Bus activation.
+    - debian/hal.postinst: Restart hal on upgrades.
 
  -- Michael Biebl <biebl at debian.org>  Wed, 17 Nov 2010 10:23:43 +0100
 

Modified: packages/experimental/hal/debian/hal.postinst
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/experimental/hal/debian/hal.postinst?rev=3759&op=diff
==============================================================================
--- packages/experimental/hal/debian/hal.postinst (original)
+++ packages/experimental/hal/debian/hal.postinst Wed Nov 17 20:01:58 2010
@@ -70,6 +70,13 @@
     if [ -x /etc/init.d/dbus ]; then
       invoke-rc.d dbus force-reload || true
     fi
+
+    # restart hald if it was running before
+    pid=$(get_pid org.freedesktop.Hal)
+    if [ -n "$pid" ]; then
+      kill $pid 2>/dev/null || true
+      lshal >/dev/null || true # will trigger through D-Bus activation
+    fi
   ;;
   abort-upgrade|abort-remove|abort-deconfigure)
   ;;




More information about the Pkg-utopia-commits mailing list