]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Revert "Drop dbus activation stub service"
authorLennart Poettering <lennart@poettering.net>
Fri, 20 Dec 2019 11:26:17 +0000 (12:26 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 20 Dec 2019 16:28:12 +0000 (17:28 +0100)
This reverts commit 07125d24eedb71693b3bf2b1f0730cd01aaac2dd.

In contrast to what is claimed in #13396 dbus-broker apparently does
care for the service file to be around, and otherwise will claim
"Service Not Activatable" in the time between systemd starting up the
broker and connecting to it, which the stub service file is supposed to
make go away.

Reverting this makes the integration test suite pass again on host with
dbus-broker (i.e. current Fedora desktop).

Tested with dbus-broker-21-6.fc31.x86_64.

README
src/core/meson.build
src/core/org.freedesktop.systemd1.service [new file with mode: 0644]
units/meson.build

diff --git a/README b/README
index 8dbf94b49cd4b35e906f46b31bab3b3a5877f6f8..b2c8d28411f623ea4cdb5fa5416add16db8eeb43 100644 (file)
--- a/README
+++ b/README
@@ -174,7 +174,9 @@ REQUIREMENTS:
         dependencies:
 
         util-linux >= v2.27.1 required
-        dbus >= 1.11.0 (strictly speaking optional, but recommended)
+        dbus >= 1.4.0 (strictly speaking optional, but recommended)
+                NOTE: If using dbus < 1.9.18, you should override the default
+                policy directory (--with-dbuspolicydir=/etc/dbus-1/system.d).
         dracut (optional)
         polkit (optional)
 
index f6e1f661779ded8bd3b3239a47ec40cae7927554..e0f08c057e8d84ab3fa484d172d46092c3a15055 100644 (file)
@@ -195,6 +195,8 @@ endforeach
 
 install_data('org.freedesktop.systemd1.conf',
              install_dir : dbuspolicydir)
+install_data('org.freedesktop.systemd1.service',
+             install_dir : dbussystemservicedir)
 
 policy = configure_file(
         input : 'org.freedesktop.systemd1.policy.in',
diff --git a/src/core/org.freedesktop.systemd1.service b/src/core/org.freedesktop.systemd1.service
new file mode 100644 (file)
index 0000000..8bd7302
--- /dev/null
@@ -0,0 +1,13 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[D-BUS Service]
+Name=org.freedesktop.systemd1
+Exec=/bin/false
+User=root
index 9da60a431cfcb27d8f46be3eb5dc91d91b85dfc5..c809011fc5ea6e4dc457d5f31f708830c20bc913 100644 (file)
@@ -310,6 +310,9 @@ install_data('user-.slice.d/10-defaults.conf',
 meson.add_install_script(meson_make_symlink,
                          join_paths(pkgsysconfdir, 'user'),
                          join_paths(sysconfdir, 'xdg/systemd/user'))
+meson.add_install_script(meson_make_symlink,
+                         join_paths(dbussystemservicedir, 'org.freedesktop.systemd1.service'),
+                         join_paths(dbussessionservicedir, 'org.freedesktop.systemd1.service'))
 if conf.get('HAVE_SYSV_COMPAT') == 1
         foreach i : [1, 2, 3, 4, 5]
                 meson.add_install_script(