supervisord是一个工作在”Unix-like OS”上的进程管理工具。
supervisord是client/server架构,supervisorctl是client端用来操作后台服务supervisord。
直接运行程序supervisord即可,默认会自动转入后台运行。
supervisord.conf是supervisord启动的时候传入的配置文件,section settings组成:
[unix_http_server]
...
[inet_http_server]
...
[supervisord]
...
[supervisorctl]
...
[include]
...
[program:x]
...
[group:x]
...
[fcgi-program:x]
...
[eventlistener:x]
...
[rpcinterface:x]
...
其中[program:x]配置的是由supervisord管理的子进程,program-x-section-settings:
command
startretries
exitcodes
redirect_stderr
stdout_logfile_maxbytes
stderr_logfile_backups
stdout_logfile