[Unit] Description=Robware [Service] WorkingDirectory=/var/www/Website ExecStart=/usr/bin/dotnet /var/www/Website/Website.dll Restart=always # Restart service after 10 seconds if the dotnet service crashes: RestartSec=10 KillSignal=SIGINT SyslogIdentifier=Website User=www-data Environment=ASPNETCORE_ENVIRONMENT=Production [Install] WantedBy=multi-user.target