mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-07 17:24:02 +00:00
systemd service config added
This commit is contained in:
14
DnsServerApp.NETCore/systemd.service
Normal file
14
DnsServerApp.NETCore/systemd.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Technitium DNS Service
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/etc/dns
|
||||
ExecStart=/usr/bin/dotnet /etc/dns/DnsServerApp.dll
|
||||
Restart=always
|
||||
# Restart service after 10 seconds if the dotnet service crashes:
|
||||
RestartSec=10
|
||||
KillSignal=SIGINT
|
||||
SyslogIdentifier=dns-service
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user