# /usr/lib/systemd/system/

[Unit]
Description=Bootstrap Blazor Application

[Service]
Type=simple
WorkingDirectory=/usr/local/ba/blazor
Environment=ASPNETCORE_ENVIRONMENT=Production
ExecStart=dotnet BootstrapBlazor.Server.dll --urls http://localhost:50853
ExecStop=/bin/kill -2 $MAINPID
KillMode=process
Restart=on-failure
RestartSec=1s

[Install]
WantedBy=multi-user.target
