When installing uwsgi using the uwsgi-py36 package, no /usr/local/bin/uwsgi will exist. Instead using that package (created as FLAVOR of uwsgi) will only install /usr/local/bin/uwsgi-3.6. Since this doesn't match the command parameter in the rc.d script using it will fail. There is no /usr/local/bin/uwsgi. A fix would be dynamically setting the command in the rc.d script based on the actual path of the uwsgi binary.
For better explanation here the mismatch between the binary and the command in the rc script: # pkg info -l uwsgi-py36 uwsgi-py36-2.0.15_2: /usr/local/bin/uwsgi-3.6 /usr/local/etc/rc.d/uwsgi /usr/local/lib/python3.6/site-packages/uwsgidecorators.py /usr/local/share/licenses/uwsgi-py36-2.0.15_2/GPLv2 /usr/local/share/licenses/uwsgi-py36-2.0.15_2/LICENSE /usr/local/share/licenses/uwsgi-py36-2.0.15_2/catalog.mk # grep command= /usr/local/etc/rc.d/uwsgi command=/usr/local/bin/uwsgi
Created attachment 188645 [details] uwsgi.diff Here's a quick fix. You still can't install both uwsgi and uwsgi-py36 side by side because they conflict on etc/rc.d/uwsgi, but at least it can be started.
A commit references this bug: Author: tobik Date: Sun Dec 24 06:46:49 UTC 2017 New revision: 457125 URL: https://svnweb.freebsd.org/changeset/ports/457125 Log: www/uwsgi: Fix rc.d script when using the uwsgi-py3* packages PR: 224198 Submitted by: Christian Sturm <reezer@reezer.org> Approved by: eugene@zhegan.in (maintainer timeout, 2 weeks) Changes: head/www/uwsgi/Makefile head/www/uwsgi/files/uwsgi.in