freebsd-ports/dns/powerdns/files/pdns.in
Pav Lucistnik b196076da0 - Update to 3.0
PR:		ports/159349
Submitted by:	Ralf van der Enden <tremere@cainites.net> (maintainer)
2011-08-08 12:38:59 +00:00

38 lines
642 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: pdns_server
# REQUIRE: DAEMON %%MYSQL%% %%PGSQL%% %%SLAPD%%
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable powerdns:
#
# pdns_enable="YES"
# pdns_flags="<set as needed>"
#
# See pdns_server(8) for flags.
#
. /etc/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"}
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"