]> git.neil.brown.name Git - mdadm.git/commitdiff
mdmon: change system unit file to use --foreground
authorNeilBrown <neilb@suse.de>
Mon, 23 Jan 2023 03:27:14 +0000 (14:27 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 23 Jan 2023 04:20:18 +0000 (15:20 +1100)
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>
systemd/mdmon@.service

index 2a82563143e4b5fea3c170ad60e7dde676e7a152..1cc8c12414589e07d5b39d8f0bf7c3f4964b04b3 100644 (file)
@@ -17,8 +17,7 @@ Documentation=man:mdmon(8)
 # '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.