启动supervisord导致失败

启动supervisord导致失败

我的/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

请仔细阅读错误日志。

错误:文件包含解析错误:/etc/supervisor/conf.d/supervisord.conf [第 6 行]:'startsecs 5\n'

第 6 行有语法错误:

startsecs 5

它应该是startsecs=5

相关内容