[Jds-team] [OpenIndiana Distribution - Feature #1249] (Closed) dbus and avahi-bridge-dsd in non global zone

illumos project devnull at illumos.org
Mon Sep 12 14:56:26 UTC 2011


Issue #1249 has been updated by Ken Mays.

Due date set to 2011-09-14
Status changed from New to Closed
Target version set to oi_151_stable
% Done changed from 0 to 100
Estimated time set to 1.00
Difficulty changed from Medium to Bite-size

I've created a new dbus-1.5.6 test package where I'm implementing this. I was told by the lead JDS maintainer that only we are mainly pulling from JDS upstream - so I'm resolving this as a one off user package.
----------------------------------------
Feature #1249: dbus and avahi-bridge-dsd in non global zone
https://www.illumos.org/issues/1249

Author: Piotr Jasiukajtis
Status: Closed
Priority: Low
Assignee: OI JDS
Category: Desktop (JDS)
Target version: oi_151_stable
Difficulty: Bite-size
Tags: dbus


Dbus and avahi-bridge-dsd services complain about running in non global zone.

I'm not sure about these checks, but commenting them out gives me ability to run Netatalk service within a Zone.

<pre>
# diff -u /lib/svc/method/svc-avahi-bridge-dsd_orig /lib/svc/method/svc-avahi-bridge-dsd
--- /lib/svc/method/svc-avahi-bridge-dsd_orig	Sat Jul 23 23:33:33 2011
+++ /lib/svc/method/svc-avahi-bridge-dsd	Sat Jul 23 23:34:10 2011
@@ -33,12 +33,12 @@
 	exit $SMF_EXIT_ERR_FATAL
 fi
 
-if smf_is_nonglobalzone; then
-	   /usr/sbin/svcadm disable -t svc:/system/avahi-bridge-dsd
-        echo "avahi-bridge-dsd cannot be run in non-global zones"
-	   sleep 5 &
-	   exit $SMF_EXIT_OK
-fi
+#if smf_is_nonglobalzone; then
+#	   /usr/sbin/svcadm disable -t svc:/system/avahi-bridge-dsd
+#        echo "avahi-bridge-dsd cannot be run in non-global zones"
+#	   sleep 5 &
+#	   exit $SMF_EXIT_OK
+#fi
 
 case "$1" in
 'start')
</pre>


<pre>
# diff -u /lib/svc/method/svc-dbus_orig /lib/svc/method/svc-dbus
--- /lib/svc/method/svc-dbus_orig	Sat Jul 23 23:30:20 2011
+++ /lib/svc/method/svc-dbus	Sat Jul 23 23:31:24 2011
@@ -38,12 +38,12 @@
 	/usr/bin/dbus-uuidgen --ensure
 fi
 
-if smf_is_nonglobalzone; then
-	   /usr/sbin/svcadm disable -t svc:/system/dbus
-        echo "dbus-daemon cannot be run in non-global zones"
-	   sleep 5 &
-	   exit $SMF_EXIT_OK
-fi
+#if smf_is_nonglobalzone; then
+#	   /usr/sbin/svcadm disable -t svc:/system/dbus
+#        echo "dbus-daemon cannot be run in non-global zones"
+#	   sleep 5 &
+#	   exit $SMF_EXIT_OK
+#fi
 
 case "$1" in
 'start')
</pre>


 


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://www.illumos.org/my/account



More information about the Jds-team mailing list