diff --git a/bootscripts/ChangeLog b/bootscripts/ChangeLog index 24fc8319a..9c8cca44f 100644 --- a/bootscripts/ChangeLog +++ b/bootscripts/ChangeLog @@ -1,3 +1,6 @@ +2021-06-02 Thomas Trepl + * Prevent sendsignals from killing an active mdmon + 2021-04-28 Bruce Dubbs * Make check_signal more robust. * Use a better methog for killproc to remove a dead pid file. 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} diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index c076cb083..7d49c1810 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -44,6 +44,16 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + 2021-06-02 + + + [thomas] - Tweak sendsignal bootscript to avoid + killing mdmod (if active). + + + + 2021-05-31 diff --git a/packages.ent b/packages.ent index 6b6c9111d..33ce9dda4 100644 --- a/packages.ent +++ b/packages.ent @@ -229,7 +229,7 @@ - + @@ -384,7 +384,7 @@ - +