Программа супервизора, не найденная

Я создаю тест здесь:

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
0
задан 2 September 2014 в 15:49
1 ответ

В вашем конфигурационном файле есть дополнительный пробел:

command=echo "hello there"

remove the space after command= and it should work.

.
1
ответ дан 4 December 2019 в 17:11

Теги

Похожие вопросы