aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Trepl (Moody) <thomas@linuxfromscratch.org>2021-06-02 22:12:59 +0200
committerThomas Trepl (Moody) <thomas@linuxfromscratch.org>2021-06-02 22:12:59 +0200
commit6a11766e6e3402951eb9c4054f4ff05097893bab (patch)
treeb3c262ec6b19570975094c9794cbd794a883c943
parent134c2784d40f20875057750f969f5aa79014a6d6 (diff)
Avoid killing mdmon at shutdown/reboot
-rw-r--r--bootscripts/lfs/init.d/sendsignals7
-rw-r--r--chapter01/changelog.xml10
2 files changed, 15 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}
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index 349d50aaf..675369236 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -43,6 +43,16 @@
appropriate for the entry or if needed the entire day's listitem.
-->
<listitem>
+ <para>2021-06-02</para>
+ <itemizedlist>
+ <listitem>
+ <para>[thomas] - Tweak sendsignal bootscript to avoid
+ killing mdmod (if active).</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+
+ <listitem>
<para>2021-05-31</para>
<itemizedlist>
<listitem>