admin avatar

supervisor Error: File contains no section headers的解决方法

🕣 by admin

之前一直使用的supervisor配置文件好好的 使用rsync迁移到新的主机后就莫名的出现了下面的错误

supervisor Error: File contains no section headers

后来找资料好久,才发现配置文件被更改了

正常的supervisor配置文件开始应该是下面这样的

1
2
3
4
5
6
7
8
[program:demogolang]
command=/var/run/golang -c /var/demo/demo.conf
startsecs=0                                                                             
stopwaitsecs=0                                                                         
autostart=false                                                                         
autorestart=true                                                                       
stdout_logfile=/tmp/demon.log                         
stderr_logfile=/tmp/demon.err 

就是因为少了[program:demogolang]

导致了supervisor Error: File contains no section headers的错误。

💘 相关文章

写一条评论