commit: 328e4997a35aca0e7bb51179cf79805fa2781138 Author: Anthony Ryan <anthonyryan1 <AT> gmail <DOT> com> AuthorDate: Thu Feb 29 23:13:21 2024 +0000 Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> CommitDate: Mon Mar 4 13:50:06 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=328e4997
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 <anthonyryan1 <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/35582 Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org> 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 64dfc7a736ff..a6b99edf1b38 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 $? }
