summaryrefslogtreecommitdiff
path: root/src/core/unit.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-05-19 16:23:14 +0200
committerLennart Poettering <lennart@poettering.net>2015-05-19 16:23:14 +0200
commit67bfdc9771ce9d67b6ecff9982d2ecb89bdb2f6b (patch)
tree4824ef6c7cbb15350ebe7c6a8eb899815b0c2587 /src/core/unit.h
parentf8a30ce524df4e2b71c2e3362e2cc83a8dcf41bf (diff)
core: also enforce ratelimiter if we stop a unit due to BindsTo=
This extends on bea355dac94e82697aa98e25d80ee4248263bf92, and extends the ratelimiter to not only be used for StopWhenUnneeded=1 units but also for units that have BindsTo= on a unit that is dead. http://lists.freedesktop.org/archives/systemd-devel/2015-April/030224.html
Diffstat (limited to 'src/core/unit.h')
-rw-r--r--src/core/unit.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/unit.h b/src/core/unit.h
index 3c9a64f898..7ef970e9b8 100644
--- a/src/core/unit.h
+++ b/src/core/unit.h
@@ -175,8 +175,8 @@ struct Unit {
/* Error code when we didn't manage to load the unit (negative) */
int load_error;
- /* Make sure we never enter endless loops with the check unneeded logic */
- RateLimit check_unneeded_ratelimit;
+ /* Make sure we never enter endless loops with the check unneeded logic, or the BindsTo= logic */
+ RateLimit auto_stop_ratelimit;
/* Cached unit file state and preset */
UnitFileState unit_file_state;