1. Unit Section

[Unit]
Description=Account Variant Backend (.NET)
After=network.target


2. Service Section

[Service]
WorkingDirectory=/home/cloud/AccountVariantBackendLive
ExecStart=/usr/bin/dotnet /home/cloud/AccountVariantBackendLive/AccountVariantBackendLive.dll
Restart=always
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=accountvariant-backend
User=cloud
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false


3. Install Section

[Install]
WantedBy=multi-user.target