If I set uwsgi_uid/uwsgi_gid to 0 in /etc/rc.conf: uwsgi_uid="0" uwsgi_gif="0" and run uwsgi I get: $ service uwsgi restart /etc/rc.conf: uwsgi_uid: not found /etc/rc.conf: uwsgi_gid: not found /etc/rc.conf: uwsgi_uid: not found /etc/rc.conf: uwsgi_gid: not found Stopping uwsgi. Waiting for PIDS: 44668. Starting uwsgi. But root is required to run in emperor mode.
(In reply to Luca Corti from comment #0) > If I set uwsgi_uid/uwsgi_gid to 0 in /etc/rc.conf: > > uwsgi_uid="0" > uwsgi_gif="0" "uwsgi_gif" ? Is that literally what you have in make.conf or did you make a typo here?
No, thats a typo I have: uwsgi_enable="YES" uwsgi_flags="--emperor /usr/local/etc/uwsgi/vassals --emperor-tyrant" uwsgi_uid = "0" uwsgi_gid = "0"
over to maintainer
You shouldn't have spaces around your "=" in /etc/rc.conf If you remove those spaces, the variable assignments will work properly. uwsgi_uid = "0" uwsgi_gid = "0" becomes: uwsgi_uid="0" uwsgi_gid="0"
Indeed, I changed it to: uwsgi_uid="root" uwsgi_gid="wheel" because uwsgi_uid="0" uwsgi_gid="0" doesn't work. uwsgi logs group 0 not found. Also, with my current config, service uwsgi stop does not stop uwsgi: uwsgi_enable="YES" uwsgi_flags="--emperor /usr/local/etc/uwsgi/vassals --emperor-tyrant" uwsgi_uid = "root" uwsgi_gid = "wheel"
uwsgi is working without problems. And I think this is overcome by time and events, and as reply since over two years, probably solved and can be closed.