#supervisor常用命令
supervisorctl update #启动文件里的配置
supervisorctl status #查看etcd启动状态
supervisorctl reread #修改万ini文件是执行刷新
supervisorctl stop #后面接的是你ini文件里的自定义program命名
supervisorctl start
1、安装
yum -y install supervisor
2、启动
systemctl start supervisord.service && systemctl status supervisord.service && systemctl enable supervisord.service
3、配置demo
PS: 配置路径在/etc/supervisord.d,必须以ini结尾的文件
[program:etcd-122.121]
command=/all/etcd/etcd-start.sh
numprocs=1
autostart=true
autorestart=true
startsecs=15
startretries=3
exitcodes=0
stopsignal=quit
stopwaitsecs=10
user=etcd
stopasgroup = true
killasgroup = true
redirect_stderr=true
stdout_logfile=/all/etcd/data/logs/etcd-stdout.log
stdout_logfile_maxbytes=64MB
stdout_logfile_backups=4
stdout_capture_maxbytes=1MB
stdout_events_enabled=false