Summary: | uwsgi can't set uwsgi_uid/uwsgi_gid to 0 in rc.conf | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Luca Corti <luca.corti> |
Component: | Individual Port(s) | Assignee: | Dmitry Sivachenko <demon> |
Status: | Open --- | ||
Severity: | Affects Only Me | CC: | freebsd-ports, w.schwarzenfeld |
Priority: | --- | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Luca Corti
2014-08-23 22:56:03 UTC
(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. |