summaryrefslogtreecommitdiff
path: root/src/machine/machined.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-07-03 15:12:58 +0200
committerLennart Poettering <lennart@poettering.net>2013-07-03 15:14:47 +0200
commit943aca8efb39453e3994ccdd1e08534b788c5aee (patch)
tree2934f322907fada7fabbadece9e76389d6585b44 /src/machine/machined.c
parent286ca4852eb2efc5c8c405e585b4e886c538f538 (diff)
logind/machined: properly notice when units are gc'ed
Diffstat (limited to 'src/machine/machined.c')
-rw-r--r--src/machine/machined.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/machine/machined.c b/src/machine/machined.c
index 86f8de9195..f2803a18c9 100644
--- a/src/machine/machined.c
+++ b/src/machine/machined.c
@@ -213,6 +213,18 @@ static int manager_connect_bus(Manager *m) {
dbus_bus_add_match(m->bus,
"type='signal',"
"sender='org.freedesktop.systemd1',"
+ "interface='org.freedesktop.systemd1.Manager',"
+ "member='UnitRemoved',"
+ "path='/org/freedesktop/systemd1'",
+ &error);
+ if (dbus_error_is_set(&error)) {
+ log_error("Failed to add match for UnitRemoved: %s", bus_error_message(&error));
+ dbus_error_free(&error);
+ }
+
+ dbus_bus_add_match(m->bus,
+ "type='signal',"
+ "sender='org.freedesktop.systemd1',"
"interface='org.freedesktop.DBus.Properties',"
"member='PropertiesChanged'",
&error);