]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/timer.c
core: add RemainAfterElapse= setting to timer units
authorLennart Poettering <lennart@poettering.net>
Tue, 17 Nov 2015 19:13:36 +0000 (20:13 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Nov 2015 19:48:23 +0000 (20:48 +0100)
commit3e0c30ac56269c6fe7b6c0105e7ad826a27d21c6
tree86910d551dad425c918de2a4534a8a51342f92da
parentdf446f96031e281ed676052ccdede0c774cb1e0c
core: add RemainAfterElapse= setting to timer units

Previously, after a timer unit elapsed we'd leave it around for good,
which has the nice benefit that starting a timer that shall trigger at a
specific point in time multiple times will only result in one trigger
instead of possibly many. With this change a new option
RemainAfterElapse= is added. It defaults to "true", to mimic the old
behaviour. If set to "false" timer units will be unloaded after they
elapsed. This is specifically useful for transient timer units.
man/systemd.timer.xml
src/core/dbus-timer.c
src/core/load-fragment-gperf.gperf.m4
src/core/timer.c
src/core/timer.h