pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



>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




Home | Main Index | Thread Index | Old Index