diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-05-12 12:46:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-05-12 12:46:59 +0000 |
commit | 3941cbcb97446a72c096da27171a3144a36fdfb7 (patch) | |
tree | 738f5a17d7ec1bb2fb3d881950c3cf681eacb9ea /systemd/mdmon@.service | |
parent | Adding upstream version 4.2+20230313. (diff) | |
download | mdadm-3941cbcb97446a72c096da27171a3144a36fdfb7.tar.xz mdadm-3941cbcb97446a72c096da27171a3144a36fdfb7.zip |
Adding upstream version 4.2+20230508.upstream/4.2+20230508
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | systemd/mdmon@.service | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/systemd/mdmon@.service b/systemd/mdmon@.service index cb6482d..020cc7e 100644 --- a/systemd/mdmon@.service +++ b/systemd/mdmon@.service @@ -6,24 +6,25 @@ # (at your option) any later version. [Unit] -Description=MD Metadata Monitor on /dev/%I +Description=MD Metadata Monitor on %I DefaultDependencies=no Before=initrd-switch-root.target Documentation=man:mdmon(8) +# Allow mdmon to keep running after switchroot, until a new +# instance is started. +IgnoreOnIsolate=true [Service] -# mdmon should never complain due to lack of a platform, -# that is mdadm's job if at all. -Environment=IMSM_NO_PLATFORM=1 # The mdmon starting in the initramfs (with dracut at least) # cannot see sysfs after root is mounted, so we will have to # 'takeover'. As the '--offroot --takeover' don't hurt when # not necessary, are are useful with root-on-md in dracut, # have them always present. -ExecStart=BINDIR/mdmon --offroot --takeover %I -Type=forking +ExecStart=BINDIR/mdmon --foreground --offroot --takeover %I # Don't set the PIDFile. It isn't necessary (systemd can work # it out) and systemd will remove it when transitioning from # initramfs to rootfs. #PIDFile=/run/mdadm/%I.pid -KillMode=none +# The default slice is system-mdmon.slice which Conflicts +# with shutdown, causing mdmon to exit early. So use system.slice. +Slice=system.slice |