summaryrefslogtreecommitdiff
path: root/src/core/dbus-unit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-02-03 19:07:40 +0100
committerLennart Poettering <lennart@poettering.net>2015-02-03 19:07:40 +0100
commit261420ba2a20305ad271b6f5f380aa74c5c9dd50 (patch)
tree5ea4c7885fd372d957c9d0f2990591d8d8c111b2 /src/core/dbus-unit.c
parentd69a7ceaed77992105342a056fe68769c2e6d3bd (diff)
core: open up DefaultDependencies= property for transient units
Diffstat (limited to 'src/core/dbus-unit.c')
-rw-r--r--src/core/dbus-unit.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c
index fe876b3ffe..625d21ab8b 100644
--- a/src/core/dbus-unit.c
+++ b/src/core/dbus-unit.c
@@ -898,6 +898,20 @@ static int bus_unit_set_transient_property(
return 1;
+ } else if (streq(name, "DefaultDependencies")) {
+ int b;
+
+ r = sd_bus_message_read(message, "b", &b);
+ if (r < 0)
+ return r;
+
+ if (mode != UNIT_CHECK) {
+ u->default_dependencies = b;
+ unit_write_drop_in_format(u, mode, name, "[Unit]\nDefaultDependencies=%s\n", yes_no(b));
+ }
+
+ return 1;
+
} else if (streq(name, "Slice") && unit_get_cgroup_context(u)) {
const char *s;