]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/commitdiff
pdns-recursor: Add systemd unit file.
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 1 Apr 2011 20:56:51 +0000 (22:56 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 1 Apr 2011 20:56:51 +0000 (22:56 +0200)
References #153.

pkgs/pdns-recursor/pdns-recursor.init [deleted file]
pkgs/pdns-recursor/pdns-recursor.nm
pkgs/pdns-recursor/systemd/pdns-recursor.service [new file with mode: 0644]

diff --git a/pkgs/pdns-recursor/pdns-recursor.init b/pkgs/pdns-recursor/pdns-recursor.init
deleted file mode 100644 (file)
index c4ebfa6..0000000
+++ /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
index c82b7f080ef7b5818b11f43e2f2cd333c61e05b5..9e4a995552444336ab8d8320b93f17dc68622c4d 100644 (file)
@@ -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 (file)
index 0000000..b30521e
--- /dev/null
@@ -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