FS#10397 - Add reload capability to dbus

Attached to Project: Arch Linux
Opened by Val L. (onestep_ua) - Monday, 12 May 2008, 15:12 GMT
Last edited by Jan de Groot (JGC) - Wednesday, 20 August 2008, 20:01 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Medium
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Sometimes it's needed to reload dbus configuration for the newly installed files to take effect (eg. PolicyKit/PackageKit stuff). I suggest to add a new function to dbus rc-script, which will ask dbus to reload its configuration.

Additional info:
* reload command: dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig
This task depends upon

Closed by  Jan de Groot (JGC)
Wednesday, 20 August 2008, 20:01 GMT
Reason for closing:  Implemented
Additional comments about closing:  Implemented, though dbus 1.2.3 shouldn't need it anymore.
Comment by Greg (dolby) - Monday, 12 May 2008, 17:18 GMT
Isnt that the same as restart?
Comment by Jan de Groot (JGC) - Monday, 12 May 2008, 20:03 GMT
As far as I know, there's no need to reload dbus, as dbus uses inotify to monitor configuration files and service directories.
Comment by Val L. (onestep_ua) - Friday, 16 May 2008, 15:51 GMT
  • Field changed: Percent Complete (100% → 0%)
In that case I can't explain this:

[onestep@onestep-box ~]$ sudo /usr/sbin/packagekitd
Error trying to start: Startup failed due to security policies on this machine.
This can happen for two reasons:
* The correct user is not launching the executable (usually root)
* The org.freedesktop.PackageKit.conf file is not installed in the system /etc/dbus-1/system.d directory

[onestep@onestep-box ~]$ ls /etc/dbus-1/system.d/org.freedesktop.PackageKit.conf
[onestep@onestep-box ~]$ dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig
[onestep@onestep-box ~]$ sudo /usr/sbin/packagekitd

Anyway, I think it's not too hard to add an additional function to initscript. I can made a patch, if you like. :)

Comment by Val L. (onestep_ua) - Sunday, 18 May 2008, 09:19 GMT
Patch added.