Kui yum-updatesd ei tööta ilma messagebus teenuseta, olgugi, et tema konfis on dbus keelatud.
Debugides annab sellise veateate:
#yum-updatesd -f -d -o
Traceback (most recent call last):
File "/usr/sbin/yum-updatesd", line 322, in ?
main()
File "/usr/sbin/yum-updatesd", line 282, in main
checkUpdates(opts, wait = True)
File "/usr/sbin/yum-updatesd", line 166, in checkUpdates
bus = dbus.SystemBus()
File "/usr/lib64/python2.4/site-packages/dbus/_dbus.py", line 260, in __new__
return Bus.__new__(cls, Bus.TYPE_SYSTEM, use_default_mainloop, private)
File "/usr/lib64/python2.4/site-packages/dbus/_dbus.py", line 99, in __new__
bus._connection = dbus_bindings.bus_get(bus_type, private)
File "dbus_bindings.pyx", line 1692, in dbus_bindings.bus_get
dbus_bindings.DBusException: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
Failis /usr/sbin/yum-updatesd failis tuleb üles otsida koht:
bus = dbus.SystemBus()
try:
o = bus.get_object("org.freedesktop.NetworkManager", "/org/freedesktop/NetworkManager")
if o.state() != NM_ONLINE:
args.append("--network-fail")
except dbus.DBusException:
pass
ja dbus osa välja kommenteerida:
bus = None #dbus.SystemBus()
#try:
# o = bus.get_object("org.freedesktop.NetworkManager", "/org/freedesktop/NetworkManager")
# if o.state() != NM_ONLINE:
# args.append("--network-fail")
#except dbus.DBusException:
# pass
Nüüd töötab yum-updatesd jälle ilma messagebus teenuseta.