===서비스 정의 파일 생성===
$ sudo nano /etc/systemd/system/kestrel-helloapp.service
===서비스 파일 정의===
<syntaxhighlight lang="ini">
[Unit]
Restart=always
<nowiki>#</nowiki> Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
WantedBy=multi-user.target
</syntaxhighlight><br />
[[분류:Asp.net]]