Supervisord DotNet 守护进程

来自一搜便知
跳到导航 跳到搜索

创建配置文件

makefile /etc/supervisord.d/byapi.ini

编辑配置文件

vim /etc/supervisord.d/byapi.ini

配置文件详情

[program:mall]
command=dotnet WorkOrder.Api.dll
directory=/home/www/api
user=root

重新加载并启动

sudo supervisorctl reload
sudo supervisorctl start mall

与Supervisord一起启动

systemctl is-enabled supervisord