2005-07-18 14:59:51 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: pdns_server
|
|
|
|
# REQUIRE: DAEMON
|
2006-02-20 21:47:50 +01:00
|
|
|
# KEYWORD: shutdown
|
2005-07-18 14:59:51 +02:00
|
|
|
|
|
|
|
#
|
2005-11-04 11:27:39 +01:00
|
|
|
# Add the following lines to /etc/rc.conf to enable powerdns:
|
2005-07-18 14:59:51 +02:00
|
|
|
#
|
|
|
|
#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.conf"}
|
|
|
|
pdns_flags=${pdns_flags:-""}
|
|
|
|
|
|
|
|
load_rc_config ${name}
|
|
|
|
|
|
|
|
required_files=${pdns_conf}
|
|
|
|
|
2007-01-13 00:49:04 +01:00
|
|
|
monitor_cmd="${command} --daemon=no --guardian=no --control-console --loglevel=9"
|
|
|
|
extra_commands="monitor"
|
|
|
|
|
2005-07-18 14:59:51 +02:00
|
|
|
run_rc_command "$1"
|