Alright, after messing around some more I found what I did wrong.
Turns out the lines for supervisorctl
below, only tell supervisorctl
where it can find the socket file.
[supervisorctl] serverurl=unix:///var/run/supervisor.sock
Further above in the file there are two other lines which define where the file is actually created:
[unix_http_server] file=/tmp/supervisor.sock
As you can see that created the socket file in /tmp/
while supervisorctl
tried to read it from /var/run/
. I changed the last line to file=/var/run/supervisor.sock
and now it works beatifully.
I hope this answer might help someone else dealing with the same trouble.
Also, you can check out the link provided by @MariusMatutiae in the comments: https://stackoverflow.com/questions/10716159/nginx-and-supervisor-setup-in-ubuntu