aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@mengyan1223.wang>2022-03-13 16:12:55 +0800
committerXi Ruoyao <xry111@mengyan1223.wang>2022-03-13 16:12:55 +0800
commit408f4ae8384d630cc41bb348d4d898f38a628d86 (patch)
treed932a8acb7ffe4e610510313b2d855df72dfeffe
parentac47b252fe9f2af7b37bfa5e7e0eca4400ddb014 (diff)
systemd: dbus: add --runstatedir=/run
This prevents a reference to /var/run in /usr/lib/tmpfiles.d/dbus.conf, which would cause a warning from systemd-tmpfiles. --with-system-pid-file=/run/dbus/pid is not needed with this, but --with-console-auth-dir and --with-system-socket are still needed.
-rw-r--r--chapter08/dbus.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/chapter08/dbus.xml b/chapter08/dbus.xml
index 271df146f..044c04aeb 100644
--- a/chapter08/dbus.xml
+++ b/chapter08/dbus.xml
@@ -51,12 +51,12 @@
<screen><userinput remap="configure">./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
+ --runstatedir=/run \
--disable-static \
--disable-doxygen-docs \
--disable-xml-docs \
--docdir=/usr/share/doc/dbus-&dbus-version; \
--with-console-auth-dir=/run/console \
- --with-system-pid-file=/run/dbus/pid \
--with-system-socket=/run/dbus/system_bus_socket</userinput></screen>
<variablelist>
@@ -72,7 +72,7 @@
<varlistentry>
<term>
- <parameter>--with-system-pid-file=/run/dbus/pid</parameter> and
+ <parameter>--runstatedir=/run</parameter> and
<parameter>--with-system-socket=/run/dbus/system_bus_socket</parameter>
</term>
<listitem>