I am using supervisor to start a server running on port 80. Ideally, I'd
need to bootstrap the process as the root user (so the server can bind to
port 80), and then change the program owner to a non-root user (more
secure).

My understanding is that the user setting of the program section is
designed to do exactly that, but it doesn't seem to work in my case. I am
wondering if maybe supervisor switches user too fast? I.e before the
program has the time to bind to port 80?



Here's the extract for the program (from /etc/supervisor.conf) - with this
config the program fails to bind to ports 80 and 443 (it works if I comment
out the "user=server" entry)

[program:dispatchOp]
command=node --debug /opt/ngc/liveNJS/src/server.js --port 80 --securePort
443 --environment test --roles op
directory=/opt/ngc/liveNJS/
stdout_logfile=/tmp/op.log
redirect_stderr=true
priority=100
autostart=true
autorestart=true
user=server


Thanks in advance for the help!
_______________________________________________
Supervisor-users mailing list
[email protected]
http://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to