[bug-notifications] [dbus 0003961]: says "dbus-daemon cannot be run in non-global zones" but it does
Mantis Bug Tracker
noreply at opencsw.org
Wed Jan 18 10:20:14 CET 2012
A NOTE has been added to this issue.
======================================================================
https://www.opencsw.org/mantis/view.php?id=3961
======================================================================
Reported By: james
Assigned To: wbonnet
======================================================================
Project: dbus
Issue ID: 3961
Category: other
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
======================================================================
Date Submitted: 2009-10-13 01:45 CEST
Last Modified: 2012-01-18 10:20 CET
======================================================================
Summary: says "dbus-daemon cannot be run in non-global zones"
but it does
Description:
/etc/opt/csw/init.d/cswdbus contains:
if smf_is_nonglobalzone; then
/usr/sbin/svcadm disable -t svc:/system/cswdbus
echo "dbus-daemon cannot be run in non-global zones"
sleep 5 &
exit $SMF_EXIT_OK
fi
but the logic fails and it does start:
# /etc/opt/csw/init.d/cswdbus start
/etc/opt/csw/init.d/cswdbus: smf_is_nonglobalzone: not found
As you can see from init PID it's running in a non-global zone:
# ps -ef | egrep 'dbus-daemon|init'
root 18635 16978 0 00:35:04 pts/8 0:00 egrep dbus-daemon|init
root 16253 16233 0 00:28:19 ? 0:00 /sbin/init
messageb 18581 16233 0 00:34:04 ? 0:00 /opt/csw/bin/dbus-daemon
--system
======================================================================
----------------------------------------------------------------------
(0009541) ghenry (reporter) - 2012-01-18 10:20
https://www.opencsw.org/mantis/view.php?id=3961#c9541
----------------------------------------------------------------------
does this link help:
http://wesunsolve.net/bugid/id/6541025
Change line 13 in /lib/svc/method/svc-nscd of the global zone from
if (smf_is_nonglobalzone); then
to
if [ `/sbin/zonename` != "global" ]; then
and reboot each non-global zone.
A simpler (and presumably more correct) workaround is to replace
33 if (smf_is_system_labeled); then
34 if (smf_is_nonglobalzone); then
with
33 if smf_is_system_labeled; then
34 if smf_is_nonglobalzone; then
That is, simply drop the parentheses.
More information about the bug-notifications
mailing list