<pre>
$ sudo vi /etc/systemd/system/blazorsvr-app.service
</pre>
<pre>
[Unit]
Description=Example .NET Blazor Server running on Ubuntu
[Service]
WorkingDirectory=/home/piroto/blazorserver
ExecStart=/usr/bin/dotnet /home/blazorserver/blazorserver.dll
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=dotnet-example
User=www-data
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
[Install]
WantedBy=multi-user.target
</pre>