Starting supervisord as root or not?

前端 未结 5 1068
别跟我提以往
别跟我提以往 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条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-01 02:46

    My environment :

    Homestead+laravel ubuntu18 LTS

    I had the same problem,
    Be sure to control that the file belongs to the correct owner.

    1.Starting supervisor must use root

    example:

    vagrant@homestead:~$ sudo supervisord -c /etc/supervisord.conf
    vagrant@homestead:~$ ps -aux|grep supervisord
    root     12145  0.0  0.8  71144 16744 ?        Ss   07:20   0:00 /usr/bin/python /usr/bin/supervisord -c /etc/supervisord.conf
    

    you may kill all processing of supervisor and re-run

    2.Try not to use root run job.

    My job conf is /etc/supervisor/conf.d/lara*.conf,user is vagrant

    my job conf

    chown log file to vagrant,invole file related supervisor.conf

    my supervisor conf

    then

    run supervisorctl status use vagrant

    job run

提交回复
热议问题