diff options
author | NeilBrown <neilb@suse.de> | 2023-03-13 04:42:58 +0100 |
---|---|---|
committer | Jes Sorensen <jes@trained-monkey.org> | 2023-03-19 17:33:25 +0100 |
commit | 0f9a4b3e11fbe4f8631d20b1f89cf43e9219db55 (patch) | |
tree | 8528017ebda2f149f77eaee1341308a4bc92f687 /Grow.c | |
parent | mdmon: change systemd unit file to use --foreground (diff) | |
download | mdadm-0f9a4b3e11fbe4f8631d20b1f89cf43e9219db55.tar.xz mdadm-0f9a4b3e11fbe4f8631d20b1f89cf43e9219db55.zip |
mdmon: Remove need for KillMode=none
mdmon needs to keep running during the switchroot out of (at boot) and
then back into (at shutdown) the initrd. It runs until a new mdmon
takes over.
Killmode=none is used to achieve this, with the help of --offroot which
sets argv[0][0] to '@' which systemd understands.
This is needed because mdmon is currently run in system-mdmon.slice
which conflicts with shutdown.target so without Killmode=none mdmon
would get killed early in shutdown when system.mdmon.slice is removed.
As described in systemd.service(5), this conflict with shutdown can be
resolved by explicitly requesting system.slice, which is a natural
counterpart to DefaultDependencies=no.
So add that, and also add IgnoreOnIsolate=true to avoid another possible
source of an early death. With these we no longer need KillMode=none
which the systemd developers have marked as "deprecated".
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
Diffstat (limited to 'Grow.c')
0 files changed, 0 insertions, 0 deletions