16 lines
348 B
SYSTEMD
16 lines
348 B
SYSTEMD
[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
|