我在CentOS 6.5上安装了Supervisor,目前遇到了一些我似乎无法解决的奇怪错误.
我在/ etc目录中创建了一个supervisord.conf文件并像这样调用supervisor:
$supervisord -c /etc/supervisord.conf
这看起来很基本.但是这个错误不断出现:
Error: .ini file does not include supervisord section
我的supervisord.conf文件如下所示:
[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
有谁知道这里的问题是什么?
解决方法
你可能错过了文件中的[supervisord]部分.见
this.
对于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"