From: Lennart Poettering Date: Tue, 17 Nov 2015 19:38:12 +0000 (+0100) Subject: run: automatically clean up transient timers created by systemd-run X-Git-Tag: v228~1^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6348d701bd24afcca4857417e66756f752f02136;p=thirdparty%2Fsystemd.git run: automatically clean up transient timers created by systemd-run --- diff --git a/src/run/run.c b/src/run/run.c index 9f096b75b7a..e1accc467ba 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)