]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/scope.c
core: don't trigger OnFailure= deps when a unit is going to restart
authorLennart Poettering <lennart@poettering.net>
Fri, 1 Jun 2018 17:06:19 +0000 (19:06 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Jun 2018 17:08:30 +0000 (19:08 +0200)
commit2ad2e41a72ec19159c0746a78e15ff880fe32a63
tree56c695bb689e7932f72604945e9e2ef765beb178
parent7f66b026bbdda6bd3ddf7f617bf2c3a475e4a665
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
13 files changed:
src/core/automount.c
src/core/device.c
src/core/mount.c
src/core/path.c
src/core/scope.c
src/core/service.c
src/core/slice.c
src/core/socket.c
src/core/swap.c
src/core/target.c
src/core/timer.c
src/core/unit.c
src/core/unit.h