Supervisor unrecognized service issue after install

岁酱吖の 提交于 2019-12-06 21:38:36

问题


If I install supervisor from apt-get I get version 3.0b2-1 and if I run sudo service supervisor status I get is running (older beta version working fine)

A directory at /etc/supervisor is created with supervisord.conf file inside and empty dir conf.d

However, trying to install latest version (3.1.1) with pip or easy_install and running service supervisor status I get supervisor: unrecognized service (latest version not working)

No configuration files are created at /etc so I did echo_supervisord_conf > /etc/supervisord.conf as said at docs.

I can't run service start/stop/restart/status... And I don't know if supervisor will actually work. Any ideas here?

Note: I'm using an Ubuntu 14.04 x64 machine.


回答1:


What I finally did is to actually work with the apt-get installation. No issues found with it.




回答2:


I would recommend going the route of adding an upstart service as shown here.

Once you've created the upstart conf file, you can then just do:

sudo start supervisord



回答3:


Faced a similar issue due to /etc/init.d/supervisord lacking executable mode.

sudo chmod +x /etc/init.d/supervisord

Fixed it for me.




回答4:


For others that stumbled upon this thread, I had the same issue however my file structure was wrong.

My structure was /etc/init.d/supervisor/supervisord.

This does not work. You need to have the supervisord file inside of init.d like so: /etc/init.d/supervisord.



来源:https://stackoverflow.com/questions/25264486/supervisor-unrecognized-service-issue-after-install

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!