From: Stefan Schantl Date: Fri, 1 Apr 2011 20:56:51 +0000 (+0200) Subject: pdns-recursor: Add systemd unit file. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5549900422c0c84ae922c53149d9e90bb69bbd8f;p=ipfire-3.x.git pdns-recursor: Add systemd unit file. References #153. --- diff --git a/pkgs/pdns-recursor/pdns-recursor.init b/pkgs/pdns-recursor/pdns-recursor.init deleted file mode 100644 index c4ebfa664..000000000 --- a/pkgs/pdns-recursor/pdns-recursor.init +++ /dev/null @@ -1,9 +0,0 @@ -description "Control the powerdns recursor" -author "IPFire Team" - -start on starting network -stop on kill-all-network-services or stopping network - -exec /usr/sbin/pdns_recursor -expect fork -respawn diff --git a/pkgs/pdns-recursor/pdns-recursor.nm b/pkgs/pdns-recursor/pdns-recursor.nm index c82b7f080..9e4a99555 100644 --- a/pkgs/pdns-recursor/pdns-recursor.nm +++ b/pkgs/pdns-recursor/pdns-recursor.nm @@ -26,7 +26,7 @@ include $(PKGROOT)/Include PKG_NAME = pdns-recursor PKG_VER = 3.3 -PKG_REL = 1 +PKG_REL = 2 PKG_MAINTAINER = PKG_GROUPS = Networking/DNS diff --git a/pkgs/pdns-recursor/systemd/pdns-recursor.service b/pkgs/pdns-recursor/systemd/pdns-recursor.service new file mode 100644 index 000000000..b30521eb2 --- /dev/null +++ b/pkgs/pdns-recursor/systemd/pdns-recursor.service @@ -0,0 +1,9 @@ +[Unit] +Description=Power DNS Recursor +After=network.target + +[Service] +ExecStart=/usr/sbin/pdns_recursor --daemon=no + +[Install] +WantedBy=multi-user.target