![未找到主管程序](https://linux22.com/image/640819/%E6%9C%AA%E6%89%BE%E5%88%B0%E4%B8%BB%E7%AE%A1%E7%A8%8B%E5%BA%8F.png)
我在这里创建一个测试:
vi /etc/supervisor/conf.d/test.conf
它看起来像这样:
[program:sentry-test]
command= echo "hello there"
然后我运行该命令并得到输出:
supervisorctl reread
/usr/local/lib/python2.6/dist-packages/supervisor-3.0a12-py2.6.egg/supervisor/options.py:286: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
'Supervisord is running as root and it is searching '
No config updates to processes
然后我尝试:
supervisorctl start sentry-test
/usr/local/lib/python2.6/dist-packages/supervisor-3.0a12-py2.6.egg/supervisor/options.py:286: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
'Supervisord is running as root and it is searching '
sentry-test: ERROR (no such process)
我不知道为什么我的一个程序不能运行?
服务器:
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid
答案1
您的配置文件有一个额外的空间:
command=echo "hello there"
删除后面的空格command=
就可以了。