Answer the question
In order to leave comments, you need to log in
Supervisor + fcgiwrap, how to set owner on unix-socket?
Good day, dear ones!
Given: Docker + Linux + supervisor + fcgiwrap. You need to run fcgiwrap , specify unix-socket and assign rights to it. Of course, there is no initialization system, so supervisor is used , config:
[program:fcgi-wrap]
command=/usr/sbin/fcgiwrap -s unix:/var/run/hello.sock
process_name=%(program_name)s_%(process_num)02d
numprocs=1
autostart=true
Most probably you will want to launch fcgiwrap by spawn-fcgi using a configuration like this
Answer the question
In order to leave comments, you need to log in
I don’t understand what docker and supervisord have to do with it.
Are you running a docker container and have a supervisor inside it? Or are you running the docker container and fcgiwrap with supervisor?
Why are you not satisfied with root as the owner of the socket, if it is inside a container?
If supervisor and fcgiwrap are inside the container, then just specify from which user to run the container with all this via "docker run --user".
You can also add the socket itself and the rights to it to the supervisor config, and specify in the command fcgiwrap which socket to use.
[program:fcgi-wrap]
command=/usr/sbin/fcgiwrap -s unix:/var/run/hello.sock
process_name=%(program_name)s_%(process_num)02d
numprocs=1
autostart=true
user = some_user
socket = unix:///var/run/hello.sock
socket_owner = some_user:some_group
socket_mode = 0770
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question