安装
dnf install supervisor
systemctl start supervisord
systemctl enable supervisord
增加配置文件
增加stepin程序的配置文件 /etc/supervisord.d/stepin.ini
[program: stepin]
command=java -jar stepin-0.0.1-SNAPSHOT.jar
directory=/home/deploy/
autorestart=true
autostart=true
stderr_logfile=/home/deploy/logs/err.log
stdout_logfile=/home/deploy/logs/out.log
user=root
stopsignal=INT
startsecs=1
常用命令
supervisorctl start stepin
supervisorctl restart stepin
supervisorctl status stepin
supervisorctl stop stepin