supervisor
使用
安装配置
待续...
服务配置
[program:g7service]
command=/bin/bash -c "dotnet YH.TaskManager.Collect.dll"
directory=/home/service/g7/
stderr_logfile=/var/log/g7service.log
stdout_logfile=/var/log/g7service.log
environment=ASPNETCORE_ENVIRONMENT=Production
user=root
stopsignal=INT
autostart=true
autorestart=true
startsecs=1
命令
-
更新配置
supervisorctl update
-
重新启动配置中的所有程序
supervisorctl reload
-
启动/停止某个进程(program_name=你配置中写的程序名称)
supervisorctl start program_name
pervisorctl stop program_name
-
查看正在守候的进程
supervisorctl
-
停止全部进程
supervisorctl stop all