summaryrefslogtreecommitdiff
path: root/src/core/timer.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-11-17 20:13:36 +0100
committerLennart Poettering <lennart@poettering.net>2015-11-17 20:48:23 +0100
commit3e0c30ac56269c6fe7b6c0105e7ad826a27d21c6 (patch)
tree86910d551dad425c918de2a4534a8a51342f92da /src/core/timer.h
parentdf446f96031e281ed676052ccdede0c774cb1e0c (diff)
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.
Diffstat (limited to 'src/core/timer.h')
-rw-r--r--src/core/timer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/timer.h b/src/core/timer.h
index ac5af6a93c..6bc9fbed3d 100644
--- a/src/core/timer.h
+++ b/src/core/timer.h
@@ -73,6 +73,7 @@ struct Timer {
bool persistent;
bool wake_system;
+ bool remain_after_elapse;
char *stamp_path;
};