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@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/35582
Signed-off-by: Alexys Jacob <ultrabug@gentoo.org>
This commit is contained in:
Anthony Ryan
2024-02-29 18:13:21 -05:00
committed by Alexys Jacob
parent 54651342d7
commit 328e4997a3

View File

@@ -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 $?
}