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

Tuesday, Nov 3, 2020 | 1 minute read | Updated at Tuesday, Nov 3, 2020

@

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

supervisor Error: File contains no section headers

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

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

[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的错误。

© 2018 - 2026 vpslala

🌱 Powered by Hugo with theme Dream.