netcore centos unit服务文件
[Unit] Description=coreApiService [Service] Type=simple WorkingDirectory=/usr/local/app/netcore ExecStart=/usr/bin/dotnet CoreApi.dll #Restart=on-failure #Restart service after 10 seconds if the dotnet service crashes: #RestartSec=10 #SyslogIdentifier=coreApiService #User=root #Environment=ASPNETCORE_ENVIRONMENT=Production ExecStop=/bin/kill -15 $MAINPID [Install] WantedBy=multi-user.target
posted on 2022-04-19 09:16 jonney_wang 阅读(20) 评论(0) 编辑 收藏 举报