Think before you speak, read before you think.

supervisord使用

by

in

启动 supervisord

systemctl start supervisord.service

在 /etc/supervisord.d 创建 cat.ini
内容如下

 
[program:bar]
command=/bin/cat
stdout_logfile=syslog
stderr_logfile=syslog

运行

supervisorctl update
supervisorctl start all
supervisorctl status
bar                              RUNNING   pid 681, uptime 0:05:53

命令选项

add
exit
open
reload
restart 重启
start 启动
tail
supervisorctl tail -f foo 日志
avail
fg
pid 获取进程号
remove
shutdown 关闭 supervisord
status 查看状态
update 更新
clear
maintail
quit
reread
signal
stop
version


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *