Merge pull request #9158 from poettering/notify-auto-reload

trigger OnFailure= only if Restart= is not in effect
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2018-06-05 13:51:07 +02:00
committed by GitHub
14 changed files with 39 additions and 19 deletions
+1 -1
View File
@@ -1795,7 +1795,7 @@ static void socket_set_state(Socket *s, SocketState state) {
if (state != old_state)
log_unit_debug(UNIT(s), "Changed %s -> %s", socket_state_to_string(old_state), socket_state_to_string(state));
unit_notify(UNIT(s), state_translation_table[old_state], state_translation_table[state], true);
unit_notify(UNIT(s), state_translation_table[old_state], state_translation_table[state], 0);
}
static int socket_coldplug(Unit *u) {