标签:rod restart sys pid oca spn environ tst proc
cd /usr/lib/systemd/system/
vi ba.admin.service
文件内容如下:
[Unit]
Description=Bootstrap Admin Application
[Service]
Type=simple
WorkingDirectory=/usr/local/ba/admin
Environment=ASPNETCORE_ENVIRONMENT=Production
ExecStart=/usr/bin/dotnet Bootstrap.Admin.dll --urls http://localhost:50852
ExecStop=/bin/kill -2 $MAINPID
KillMode=process
Restart=on-failure
RestartSec=1s
[Install]
WantedBy=multi-user.target
cd /usr/lib/systemd/system/
vi ba.admin.service
文件内容如下:
[Unit]
Description=Bootstrap Client Application
[Service]
Type=simple
WorkingDirectory=/usr/local/ba/client
Environment=ASPNETCORE_ENVIRONMENT=Production
ExecStart=/usr/bin/dotnet Bootstrap.Client.dll --urls http://localhost:49185
ExecStop=/bin/kill -2 $MAINPID
KillMode=process
Restart=on-failure
RestartSec=1s
[Install]
WantedBy=multi-user.target
标签:rod restart sys pid oca spn environ tst proc
原文地址:https://www.cnblogs.com/argozhang/p/14878838.html