meu /etc/supervisor/conf.d/supervisord.conf
:
[supervisord]
nodaemon=true
[program:rsyslog]
command=service rsyslog start
startsecs 5
autostart=true
autorestart=true
Eu recebo o erro:
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
Por favor, leia o log de erros com atenção.
Você tem erro de sintaxe na linha 6:
Deveria ser
startsecs=5