mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-12-27 03:33:50 -05:00
Avoid killing mdmon at shutdown/reboot
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user