From 67bfdc9771ce9d67b6ecff9982d2ecb89bdb2f6b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 19 May 2015 16:23:14 +0200 Subject: 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 --- src/core/unit.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/unit.h') 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; -- cgit v1.2.3-54-g00ecf