Supervisord - ini file error on CentOS
I installed Supervisor on CentOS 6.5 and currently experiencing some weird error that I can't seem to fix.
I created a supervisord.conf
file in /etc
directory and call supervisor like this:
$ supervisord -c /etc/supervisord.conf
Which looks pretty basic. But this error keeps appearing:
Error: .ini file does not include supervisord section
My supervisord.conf file looks like:
[program:supervisord]
command=/usr/local/bin/run_queue.sh
autostart=true
autorestart=true
stderr_logfile=/var/log/laraqueue.err.log
stdout_logfile=/var/log/laraqueue.out.log
Does anybody know what's the problem here?
Solution 1:
You're probably missing the [supervisord]
section in the file. See this.
For example,
[supervisord]
logfile = /tmp/supervisord.log
logfile_maxbytes = 50MB
logfile_backups=10
loglevel = info
pidfile = /tmp/supervisord.pid
nodaemon = false
minfds = 1024
minprocs = 200
umask = 022
user = chrism
identifier = supervisor
directory = /tmp
nocleanup = true
childlogdir = /tmp
strip_ansi = false
environment = KEY1="value1",KEY2="value2"