我在这里创build一个testing:
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
你的configuration文件有一个额外的空间:
command=echo "hello there"
删除command=后的空间,它应该工作。