aports/testing/pdns-recursor/pdns-recursor.initd
Olivier Mauras c60d2a3ed5 testing/pdns-recursor: New aport
- Will use "recursor" account instead of "pdns" to have both recursor and auth servers installed  without them messing with each others users
- Included config only modify uid/gid and port on 5353 so that it could work by default with pdns
2016-08-22 15:34:53 +02:00

28 lines
560 B
Plaintext

#!/sbin/openrc-run
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/files/pdns,v 1.10 2007/05/07 20:19:18 swegener Exp $
name=pdns-recursor
daemon=/usr/sbin/pdns_recursor
recursor_control=/usr/bin/rec_control
extra_started_commands="dump reload"
depend() {
need net
after firewall
}
start() {
ebegin "Starting PowerDNS recursor"
${daemon}
eend $?
}
stop() {
ebegin "Stopping PowerDNS recursor"
${recursor_control} quit &>/dev/null
eend $?
}