1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-19 22:50:17 +03:00

homed: support LogControl1 D-Bus API too, and make use of it

All our D-Bus services support the LogControl1 API, but homed didn't so
far. Fix that, and make use of it in the test case, to make debugging it
easier.
This commit is contained in:
Lennart Poettering 2021-11-25 14:32:19 +01:00
parent 7ff048a718
commit c42234abf2
2 changed files with 5 additions and 0 deletions

View File

@ -947,6 +947,10 @@ static int manager_connect_bus(Manager *m) {
if (r < 0)
return r;
r = bus_log_control_api_register(m->bus);
if (r < 0)
return r;
suffix = getenv("SYSTEMD_HOME_DEBUG_SUFFIX");
if (suffix)
busname = strjoina("org.freedesktop.home1.", suffix);

View File

@ -26,6 +26,7 @@ inspect() {
systemd-analyze log-level debug
systemd-analyze log-target console
systemctl service-log-level systemd-homed debug
# Create a tmpfs to use as backing store for the home dir. That way we can enforce a size limit nicely.
mkdir -p /home-pool