From e0f824e978be24a36e1655d5f19dbb49ea211302 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Mon, 5 Nov 2012 12:32:55 +0000 Subject: [PATCH] add systemd unit file, thanks Morten Stevens git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2847 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- contrib/systemd-pdns.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 contrib/systemd-pdns.service diff --git a/contrib/systemd-pdns.service b/contrib/systemd-pdns.service new file mode 100644 index 000000000..1b826d9a1 --- /dev/null +++ b/contrib/systemd-pdns.service @@ -0,0 +1,12 @@ +[Unit] +Description=PowerDNS Authoritative Server +After=network.target + +[Service] +Type=forking +ExecStart=/usr/sbin/pdns_server --daemon --guardian=yes +ExecReload=/usr/bin/pdns_control cycle +ExecStop=/usr/bin/pdns_control quit + +[Install] +WantedBy=multi-user.target -- 2.40.0