From 1c6240364b376f34d7d3535f754a175be4985ad2 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sun, 30 Dec 2018 16:47:30 +0530 Subject: [PATCH] systemd service config added --- DnsServerApp.NETCore/systemd.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 DnsServerApp.NETCore/systemd.service diff --git a/DnsServerApp.NETCore/systemd.service b/DnsServerApp.NETCore/systemd.service new file mode 100644 index 00000000..09ac251d --- /dev/null +++ b/DnsServerApp.NETCore/systemd.service @@ -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