Запуск супервизора приводит к сбою

Мой /etc/supervisor/conf.d/supervisord.conf :

[supervisord]
nodaemon=true

[program:rsyslog]
command=service rsyslog start
startsecs 5
autostart=true
autorestart=true

Я получаю сообщение об ошибке:

root@haproxy:/# /usr/bin/supervisord
/usr/lib/python2.7/dist-packages/supervisor/options.py:295: 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 '
Error: File contains parsing errors: /etc/supervisor/conf.d/supervisord.conf
    [line  6]: 'startsecs 5\n'
For help, use /usr/bin/supervisord -h
-1
задан 25 November 2015 в 14:04
1 ответ

Внимательно прочтите журнал ошибок.

Ошибка: файл содержит ошибки анализа: /etc/supervisor/conf.d/supervisord.conf [строка 6]: 'startsecs 5 \ n'

У вас синтаксическая ошибка в строке 6:

startsecs 5

Должно быть startsecs = 5

1
ответ дан 5 December 2019 в 19:50

Теги

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