uwsgi-docs icon indicating copy to clipboard operation
uwsgi-docs copied to clipboard

A note about socket files not to be placed in /tmp

Open gamboz opened this issue 2 years ago • 3 comments

I've lost some time configuring apache-uwsgi interaction via unix domain sockets because I had the socket created by uwsgi in /tmp, but apache did not see it because it was launched by systemd with PrivateTemp=true.

So I'm proposing to add a note for who might have the same issue.

gamboz avatar Sep 16 '22 08:09 gamboz

您的邮件我已收到,我将会尽快给您回复信息。

IamPecker avatar Sep 16 '22 08:09 IamPecker

Ideally, under systemd you'd just use a systemd managed .socket https://www.freedesktop.org/software/systemd/man/systemd.socket.html

that way you don't need to bother with setting up permissions to the socket and the uwsgi service and the nginx service.

gdamjan avatar Nov 01 '22 16:11 gdamjan

@gdamjan yes. My point was only to remind ignorant people (like me) about this systemd behavior :)

gamboz avatar Nov 01 '22 17:11 gamboz