[PATCH 7/9] init-d-script: send SIGCONT after SIGTERM
Trek
trek00 at inbox.ru
Fri Aug 28 07:21:51 BST 2020
After receiving a SIGSTOP, a process can't react to SIGTERM,
so we need to wake it up with a SIGCONT.
Thanks: Jan Braun <janbraun at gmx.de>
https://bugs.debian.org/945464#32
---
debian/init-d-script | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/debian/init-d-script b/debian/init-d-script
index 53515d10..8f4f0268 100755
--- a/debian/init-d-script
+++ b/debian/init-d-script
@@ -70,7 +70,8 @@ do_start()
#
do_stop_cmd() {
- start-stop-daemon --stop --quiet --oknodo --retry=TERM/30/KILL/5 \
+ start-stop-daemon --stop --quiet --oknodo \
+ --retry=TERM/0/CONT/30/KILL/5 \
${PIDFILE:+--pidfile "$PIDFILE"} \
${COMMAND_NAME:+--name "$COMMAND_NAME"} \
${DAEMON:+--exec "$DAEMON"} $STOP_ARGS
--
2.20.1
More information about the Debian-init-diversity
mailing list