summaryrefslogtreecommitdiff
path: root/net-dns/maradns/files/maradns2
diff options
context:
space:
mode:
Diffstat (limited to 'net-dns/maradns/files/maradns2')
-rw-r--r--net-dns/maradns/files/maradns222
1 files changed, 22 insertions, 0 deletions
diff --git a/net-dns/maradns/files/maradns2 b/net-dns/maradns/files/maradns2
new file mode 100644
index 000000000000..c97ff3bfbb13
--- /dev/null
+++ b/net-dns/maradns/files/maradns2
@@ -0,0 +1,22 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+ provide dns
+}
+
+start() {
+ ebegin "Starting maradns"
+ start-stop-daemon --start --quiet --name maradns --wait 1000 \
+ --exec /usr/bin/duende /usr/sbin/maradns -- -f /etc/maradns/mararc
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping maradns"
+ start-stop-daemon --stop --quiet --name maradns --wait 1000 \
+ --exec /usr/bin/duende
+ eend $?
+}