Starting supervisord as root or not?

前端 未结 5 1067
别跟我提以往
别跟我提以往 2021-02-01 02:13

Supervisor is running on 3.0:

pip freeze | grep supervisor
supervisor==3.0

When starting supervisord from the command line:

sud         


        
5条回答
  •  -上瘾入骨i
    2021-02-01 02:50

    Supervisord switches to UNIX user account before any processing.

    You need to specify what kind of user account it should use, run the daemon as root but specify user in the config file

    Example:

    [program:myprogram]
    command=gunicorn --worker-class socketio.sgunicorn.GeventSocketIOWorker app.wsgi:application -b 127.0.0.1:8000
    directory=/opt/myprogram
    user=user1
    autostart=true
    autorestart=true
    redirect_stderr=True
    

    Visit http://supervisord.org/configuration.html#program-x-section-values for more information

提交回复
热议问题