]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
spec: recommend searching for system-services in /etc/ and /run/
authorLuca Boccassi <bluca@debian.org>
Fri, 13 Sep 2024 17:41:32 +0000 (19:41 +0200)
committerLuca Boccassi <bluca@debian.org>
Thu, 3 Oct 2024 00:02:56 +0000 (01:02 +0100)
This is useful when an asset manager wants to install a system
service while /usr/ is read-only (e.g.: portable services running
on a different namespaced image). Also recommend searching in /run/
following the now-standard pattern, for ephemeral services.

Signed-off-by: Luca Boccassi <bluca@debian.org>
doc/dbus-specification.xml

index f278c1e485d91e602f23d3e4e23c67474d59c0ef..0aeb60b4cb9b7646c1b21c7017bf3e7143a1577e 100644 (file)
         If two .service files in different directories offer the same
         service name, the one in the higher-priority directory is used:
         for instance, on the system bus, .service files in
-        /usr/local/share/dbus-1/system-services take precedence over those
-        in /usr/share/dbus-1/system-services.
+        /etc/dbus-1/system-services takes precedence over those in
+        /run/dbus-1/system-services, which in turn take precedence over
+        those in /usr/local/share/dbus-1/system-services, which in turn take
+        precedence over those in /usr/share/dbus-1/system-services.
       </para>
       <para>
         The executable launched will have the environment variable
         <para>
           On Unix systems, the system bus should default to searching
           for .service files in
+          <literal>/etc/dbus-1/system-services</literal>,
+          <literal>/run/dbus-1/system-services</literal>,
           <literal>/usr/local/share/dbus-1/system-services</literal>,
           <literal>/usr/share/dbus-1/system-services</literal> and
           <literal>/lib/dbus-1/system-services</literal>, with that order
           of precedence. It may also search other implementation-specific
           locations, but should not vary these locations based on environment
           variables.
+          The directory in <literal>/etc/</literal> is reserved for use by
+          either the local system administrator,
+          or an asset manager deploying services that are not part of the OS.
+          The directory in <literal>/run/</literal> is reserved for ephemeral
+          services that will disappear after a reboot.
           <footnote>
             <para>
               The system bus is security-sensitive and is typically executed