summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-05-28 21:43:03 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-05-28 21:46:30 +0400
commit53f5297f9f4bd666ac476aab1a931a7e3468be77 (patch)
tree58acb83fb91d6c6ee602a80a6caeb0085fbe9b06
parentfa23f50bdae2b41d1a9485a51234cd27dc48cf4b (diff)
downloadavahi-53f5297f9f4bd666ac476aab1a931a7e3468be77.tar.gz
Refresh dbus service
-rw-r--r--debian/avahi-daemon.postinst9
1 files changed, 7 insertions, 2 deletions
diff --git a/debian/avahi-daemon.postinst b/debian/avahi-daemon.postinst
index 5a317e4..ed62db9 100644
--- a/debian/avahi-daemon.postinst
+++ b/debian/avahi-daemon.postinst
@@ -24,9 +24,14 @@ case "$1" in
addgroup --quiet --system netdev || true
# Ask the bus to reload the config file
- if [ -x "/etc/init.d/dbus" ]; then
- invoke-rc.d dbus force-reload || true
+ if smf_present 2>/dev/null; then
+ svcadm refresh dbus || true
+ else
+ if [ -x "/etc/init.d/dbus" ]; then
+ invoke-rc.d dbus force-reload || true
+ fi
fi
+
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;