pkg/60259: www/py-uwsgi: rc.d script's stop fails to wait for process to stop

"[email protected] via gnats" <[email protected]> Wed, 13 May 2026 16:20:01 +0000 (UTC)
Newsgroups gmane.os.netbsd.devel.pkgsrc.bugs
Message-ID <[email protected]>
>Number:         60259
>Category:       pkg
>Synopsis:       www/py-uwsgi: rc.d script's stop fails to wait for process to stop
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 13 16:20:00 +0000 2026
>Originator:     Taylor R Campbell
>Release:        current
>Organization:
The NetUWSGI Restartation
>Environment:
>Description:
anonrepo1# service uwsgi restart
uwsgi already running? (pid=929).
anonrepo1# /etc/rc.d/uwsgi status
uwsgi is not running.
anonrepo1# service uwsgi start
Starting uwsgi.
[uWSGI] getting INI configuration from /usr/pkg/etc/uwsgi/anonhg.ini


The problem is that `uwsgi --stop' doesn't wait for it to stop.
>How-To-Repeat:
service uwsgi restart
>Fix:
1. Delete the custom stop_cmd -- rc.subr's default works better.
   (rc.subr's default action waits for the process to terminate.)
2. Set sig_stop=SIGINT to send the right signal, or add `--die-on-term' to uwsgi flags.
   https://web.archive.org/web/20260305112507/https://uwsgi.readthedocs.io/en/latest/Management.html#signals-for-controlling-uwsgi