summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2023-03-13 14:42:58 +1100
committerJes Sorensen <jes@trained-monkey.org>2023-03-19 12:33:25 -0400
commit6660e33edde76329bd3b7f03383856c7efee2aa9 (patch)
tree7f6c849c8b97b5a5eed1f6facb5381d16affefe0
parentd39fd87e31024804dd7f2c16c03af0379b71f5f1 (diff)
downloadmdadm-6660e33edde76329bd3b7f03383856c7efee2aa9.tar.gz
mdmon: change systemd unit file to use --foreground
There is no value in mdmon forking when it is running under systemd - systemd can still track it anyway. So add --foreground option, and remove "Type=forking". Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
-rw-r--r--systemd/mdmon@.service3
1 files changed, 1 insertions, 2 deletions
diff --git a/systemd/mdmon@.service b/systemd/mdmon@.service
index cb6482d..bba9b0e 100644
--- a/systemd/mdmon@.service
+++ b/systemd/mdmon@.service
@@ -20,8 +20,7 @@ Environment=IMSM_NO_PLATFORM=1
# '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.