diff options
author | Nicolas Cornu <ncornu@aldebaran.com> | 2015-10-19 21:57:01 +0200 |
---|---|---|
committer | Nicolas Cornu <ncornu@aldebaran.com> | 2015-10-19 21:58:01 +0200 |
commit | ceb728cf0fdfb6543f40b862525319a084332dfc (patch) | |
tree | b5db7886ee42fddc1dd72f7f17aab50f76e12e9c /src/shared/bus-util.c | |
parent | c8115977bfb4ffed885d37831db995776dbe6191 (diff) |
Hook more properties for transient units
systemd-run can now launch units with EnvironmentFile set.
Diffstat (limited to 'src/shared/bus-util.c')
-rw-r--r-- | src/shared/bus-util.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c index 78d6b0eb27..65ca173876 100644 --- a/src/shared/bus-util.c +++ b/src/shared/bus-util.c @@ -1416,6 +1416,17 @@ int bus_append_unit_property_assignment(sd_bus_message *m, const char *assignmen return bus_log_create_error(r); return 0; + } else if (streq(field, "EnvironmentFile")) { + r = sd_bus_message_append_basic(m, SD_BUS_TYPE_STRING, "EnvironmentFiles"); + if (r < 0) + return r; + + r = sd_bus_message_append(m, "v", "a(sb)", 1, + eq[0] == '-' ? eq + 1 : eq, + eq[0] == '-'); + if (r < 0) + return r; + return 0; } r = sd_bus_message_append_basic(m, SD_BUS_TYPE_STRING, field); |