From 6348d701bd24afcca4857417e66756f752f02136 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 17 Nov 2015 20:38:12 +0100 Subject: run: automatically clean up transient timers created by systemd-run --- src/run/run.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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) -- cgit v1.2.3-54-g00ecf