From 328e4997a35aca0e7bb51179cf79805fa2781138 Mon Sep 17 00:00:00 2001 From: Anthony Ryan Date: Thu, 29 Feb 2024 18:13:21 -0500 Subject: [PATCH] www-servers/uwsgi: OpenRC init.d stop timeout should reflect the default shutdown time If we don't wait long enough for uwsgi to shut down all it's workers properly OpenRC can lose track of the pid or think the daemon has crashed if shutdown finishes after OpenRC has given up. Signed-off-by: Anthony Ryan Closes: https://github.com/gentoo/gentoo/pull/35582 Signed-off-by: Alexys Jacob --- www-servers/uwsgi/files/uwsgi.initd-r7 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www-servers/uwsgi/files/uwsgi.initd-r7 b/www-servers/uwsgi/files/uwsgi.initd-r7 index 64dfc7a736ffb..a6b99edf1b38a 100644 --- a/www-servers/uwsgi/files/uwsgi.initd-r7 +++ b/www-servers/uwsgi/files/uwsgi.initd-r7 @@ -128,7 +128,8 @@ stop() { else ebegin "Stopping uWSGI application ${PROGNAME}" fi - start-stop-daemon --stop --signal QUIT --pidfile "${PIDFILE}" + # retry should be set higher than uwsgi worker-reload-mercy (default 60) + start-stop-daemon --stop --signal QUIT --retry 90 --pidfile "${PIDFILE}" eend $? }