Avoid killing mdmon at shutdown/reboot

This commit is contained in:
Thomas Trepl (Moody) 2021-06-02 22:12:59 +02:00
parent 134c2784d4
commit 6a11766e6e
2 changed files with 15 additions and 2 deletions

View File

@ -29,8 +29,11 @@
case "${1}" in case "${1}" in
stop) stop)
omit=$(pidof mdmon)
[ -n "$omit" ] && omit="-o $omit"
log_info_msg "Sending all processes the TERM signal..." log_info_msg "Sending all processes the TERM signal..."
killall5 -15 killall5 -15 $omit
error_value=${?} error_value=${?}
sleep ${KILLDELAY} sleep ${KILLDELAY}
@ -42,7 +45,7 @@ case "${1}" in
fi fi
log_info_msg "Sending all processes the KILL signal..." log_info_msg "Sending all processes the KILL signal..."
killall5 -9 killall5 -9 $omit
error_value=${?} error_value=${?}
sleep ${KILLDELAY} sleep ${KILLDELAY}

View File

@ -42,6 +42,16 @@
<listitem revision="sysv"> or <listitem revision="systemd"> as <listitem revision="sysv"> or <listitem revision="systemd"> as
appropriate for the entry or if needed the entire day's listitem. 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> <listitem>
<para>2021-05-31</para> <para>2021-05-31</para>
<itemizedlist> <itemizedlist>