diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-11-17 20:38:12 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-11-17 20:50:21 +0100 |
commit | 6348d701bd24afcca4857417e66756f752f02136 (patch) | |
tree | 2e89849b4139742a2996a648086e947366f19eaf | |
parent | 3e0c30ac56269c6fe7b6c0105e7ad826a27d21c6 (diff) |
run: automatically clean up transient timers created by systemd-run
-rw-r--r-- | src/run/run.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/run/run.c b/src/run/run.c index 9f096b75b7..e1accc467b 100644 --- a/src/run/run.c +++ b/src/run/run.c @@ -648,6 +648,11 @@ static int transient_timer_set_properties(sd_bus_message *m) { if (r < 0) return r; + /* Automatically clean up our transient timers */ + r = sd_bus_message_append(m, "(sv)", "RemainAfterElapse", "b", false); + if (r < 0) + return r; + if (arg_on_active) { r = sd_bus_message_append(m, "(sv)", "OnActiveSec", "t", arg_on_active); if (r < 0) |