summaryrefslogtreecommitdiff
path: root/src/core/timer.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-06-01 19:06:19 +0200
committerLennart Poettering <lennart@poettering.net>2018-06-01 19:08:30 +0200
commit2ad2e41a72ec19159c0746a78e15ff880fe32a63 (patch)
tree56c695bb689e7932f72604945e9e2ef765beb178 /src/core/timer.c
parent7f66b026bbdda6bd3ddf7f617bf2c3a475e4a665 (diff)
downloadsystemd-2ad2e41a72ec19159c0746a78e15ff880fe32a63.tar.gz
core: don't trigger OnFailure= deps when a unit is going to restart
This adds a flags parameter to unit_notify() which can be used to pass additional notification information to the function. We the make the old reload_failure boolean parameter one of these flags, and then add a new flag that let's unit_notify() if we are configured to restart the service. Note that this adjusts behaviour of systemd to match what the docs say. Fixes: #8398
Diffstat (limited to 'src/core/timer.c')
-rw-r--r--src/core/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/timer.c b/src/core/timer.c
index 3adbe57d55..b2fe05d4cf 100644
--- a/src/core/timer.c
+++ b/src/core/timer.c
@@ -264,7 +264,7 @@ static void timer_set_state(Timer *t, TimerState state) {
if (state != old_state)
log_unit_debug(UNIT(t), "Changed %s -> %s", timer_state_to_string(old_state), timer_state_to_string(state));
- unit_notify(UNIT(t), state_translation_table[old_state], state_translation_table[state], true);
+ unit_notify(UNIT(t), state_translation_table[old_state], state_translation_table[state], 0);
}
static void timer_enter_waiting(Timer *t, bool initial);