mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
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:
committed by
Alexys Jacob
parent
54651342d7
commit
328e4997a3
@@ -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 $?
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user