dc6ea8adb7
- Prepare Makefile for upcoming new stable release of OpenDBX library (which bumps library number from .1 to .2). - Add stupidity fix for config location to pdns.in (moved the config but forgot to edit rc.d script). - Also changed location of config directory in pdns.conf. - Bump port-revision. PR: ports/108685 Submitted by: Ralf van der Enden <tremere@cainites.net> (maintainer) Obtained from: www.linuxnetworks.de [1]
38 lines
608 B
Bash
38 lines
608 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: pdns_server
|
|
# REQUIRE: DAEMON
|
|
# KEYWORD: shutdown
|
|
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable powerdns:
|
|
#
|
|
#pdns_enable="YES"
|
|
#
|
|
# See pdns_server(8) for flags.
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name=pdns
|
|
rcvar=`set_rcvar`
|
|
|
|
command=%%PREFIX%%/sbin/pdns_server
|
|
|
|
# set defaults
|
|
|
|
pdns_enable=${pdns_enable:-"NO"}
|
|
pdns_conf=${pdns_conf:-"%%PREFIX%%/etc/pdns/pdns.conf"}
|
|
pdns_flags=${pdns_flags:-""}
|
|
|
|
load_rc_config ${name}
|
|
|
|
required_files=${pdns_conf}
|
|
|
|
monitor_cmd="${command} --daemon=no --guardian=no --control-console --loglevel=9"
|
|
extra_commands="monitor"
|
|
|
|
run_rc_command "$1"
|