-1

My /etc/supervisor/conf.d/supervisord.conf:

[supervisord]
nodaemon=true

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

I get the error:

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
2

1 Answer 1

1

Please read the error log carefully.

Error: File contains parsing errors: /etc/supervisor/conf.d/supervisord.conf [line 6]: 'startsecs 5\n'

You have syntax error in line 6:

startsecs 5

It should be startsecs=5

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .