For mdadm's systemd configuration, current systemd KillMode is "none" in following service files, - mdadm-grow-continue@.service - mdmon@.service This "none" mode is strongly recommended againsted by systemd developers (see man 5 system.kill for "KillMode=" section), and is considering to remove in future systemd version. A proper KillMode is "mixed", which is explained in the system.kill man page as, "If set to mixed, the SIGTERM signal (see below) is sent to the main process while the subsequent SIGKILL signal (see below) is sent to all remaining processes of the unit's control group." This patch changes KillMode in above listed service files from "none" to "mixed", to follow systemd recommendation and avoid potential unnecessary issue. Suggested-by: Benjamin Brunner <bbrunner@xxxxxxxx> Cc: Neil Brown <neilb@xxxxxxx> Cc: Jes Sorensen <jsorensen@xxxxxx> --- systemd/mdadm-grow-continue@.service | 2 +- systemd/mdmon@.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/systemd/mdadm-grow-continue@.service b/systemd/mdadm-grow-continue@.service index 5c667d2..5fe9d99 100644 --- a/systemd/mdadm-grow-continue@.service +++ b/systemd/mdadm-grow-continue@.service @@ -14,4 +14,4 @@ ExecStart=BINDIR/mdadm --grow --continue /dev/%I StandardInput=null StandardOutput=null StandardError=null -KillMode=none +KillMode=mixed diff --git a/systemd/mdmon@.service b/systemd/mdmon@.service index 85a3a7c..5ef1bf5 100644 --- a/systemd/mdmon@.service +++ b/systemd/mdmon@.service @@ -25,4 +25,4 @@ Type=forking # it out) and systemd will remove it when transitioning from # initramfs to rootfs. #PIDFile=/run/mdadm/%I.pid -KillMode=none +KillMode=mixed -- 2.31.1