D-Bus service files dynamics

Holger Berndt berndth at gmx.de
Fri Aug 29 08:58:00 PDT 2008


Hi Colin,

On Fri, 29 Aug 2008 09:06:26 -0400
"Colin Walters" <walters at verbum.org> wrote:

> Hi, as far as I can tell from a brief look at the code we don't try to
> monitor on the service directories, so right now you should "kill
> -HUP" the daemon.  This is probably a bug, or at least something that
> vendors will need to deal with in package %post scripts and the
> equivalent.

I think this should probably be included in the D-Bus daemon itself,
instead of passing it on to the distributions.

When parsing the .service files, the directory (and/or file) mtime
could be stored, and before using the cached values, those mtimes could
be compared to the current ones. That way, reparsing would only be done
as needed, so there would be basically no performance penalty, and the
service configuration would be a lot more transparent.

I am just unsure if that solution would also apply to windows.

If nobody objects, I'll file a bug report / enhancement request.

Holger


More information about the dbus mailing list