18

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?

  • Do you also have a [supervisord] section? – Nathan C Oct 23 '14 at 1:53
  • Can you explain a bit more? I don't seem to know this stuff very well. – nogias Oct 23 '14 at 1:58
  • 1
    Take a look at this. The program section above is right, but you also need the other section I mentioned in the same file as it contains all the global settings. – Nathan C Oct 23 '14 at 1:59
20

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"
  • Is there any particularly important options I need to specify for the [supervisord] section? I currently leave it blank. – nogias Oct 23 '14 at 2:13
  • 2
    All the options are optional and are mostly related to logging, so nothing too important unless you need them. – Nathan C Oct 23 '14 at 13:30
  • 8
    this doesn't fix the problem for me – bachr Feb 12 '16 at 17:39

protected by Michael Hampton Oct 14 '16 at 23:59

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.