Starting supervisord as root or not?

前端 未结 5 1125
别跟我提以往
别跟我提以往 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:48

    You got:

    Per my understanding, you got this CRIT message which is bothering you:

    CRIT Supervisor running as root (no user in config file)

    The words in brackets is a clue. This message indicates that you may be running Supervisor as root unintentionally.

    Do this:

    So the solution is pretty simple: Tell Supervisor that you are doing this intentionally.
    (in /etc/supervisor/supervisord.conf)

    [supervisord]
    user = root
    

    Once you run Supervisord as root, it sets uid to the user you assigned, which is, root. (#308)

    Not important:

    Although now you may get this message:

    CRIT Set uid to user 0

    No worries, this message should be a INFO level rather than a CRIT level. (#693)

提交回复
热议问题