aboutsummaryrefslogtreecommitdiffstats
path: root/bootscripts
diff options
context:
space:
mode:
Diffstat (limited to 'bootscripts')
-rw-r--r--bootscripts/lfs/init.d/sendsignals7
1 files changed, 5 insertions, 2 deletions
diff --git a/bootscripts/lfs/init.d/sendsignals b/bootscripts/lfs/init.d/sendsignals
index 55de3119b..d2c80eb2f 100644
--- a/bootscripts/lfs/init.d/sendsignals
+++ b/bootscripts/lfs/init.d/sendsignals
@@ -29,8 +29,11 @@
case "${1}" in
stop)
+ omit=$(pidof mdmon)
+ [ -n "$omit" ] && omit="-o $omit"
+
log_info_msg "Sending all processes the TERM signal..."
- killall5 -15
+ killall5 -15 $omit
error_value=${?}
sleep ${KILLDELAY}
@@ -42,7 +45,7 @@ case "${1}" in
fi
log_info_msg "Sending all processes the KILL signal..."
- killall5 -9
+ killall5 -9 $omit
error_value=${?}
sleep ${KILLDELAY}