Exemple de servei (systemctl) habitualment a /etc/system.d/system:

[Unit]
Description=Baget Nuget Server

[Service]
WorkingDirectory=/home/davidm/baget
ExecStart=/usr/bin/dotnet /home/davidm/baget2/baget/BaGet.dll
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=baget
User=root
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false

[Install]
WantedBy=multi-user.target