2022-07-04 12:17:41 +02:00
|
|
|
[Unit]
|
2022-07-04 13:07:56 +02:00
|
|
|
Description=Technitium DNS Server
|
2022-07-28 01:25:51 +02:00
|
|
|
After=network.target
|
2022-07-04 12:17:41 +02:00
|
|
|
|
|
|
|
[Service]
|
2022-07-28 01:25:51 +02:00
|
|
|
Type=simple
|
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
2022-07-04 12:17:41 +02:00
|
|
|
WorkingDirectory=__FINALPATH__/
|
2022-07-04 15:18:35 +02:00
|
|
|
ExecStart=/usr/bin/dotnet __FINALPATH__/DnsServerApp.dll __DATADIR__
|
2022-07-04 13:07:56 +02:00
|
|
|
Restart=always
|
|
|
|
# Restart service after 10 seconds if the dotnet service crashes:
|
|
|
|
RestartSec=10
|
|
|
|
KillSignal=SIGINT
|
|
|
|
SyslogIdentifier=dns-server
|
2022-07-04 12:17:41 +02:00
|
|
|
|
|
|
|
[Install]
|
2022-07-28 01:25:51 +02:00
|
|
|
WantedBy=multi-user.target
|