blob: f79c82f862d0e6386ae6db49be9dc8b8049ba476 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: pdns_server
# REQUIRE: DAEMON SERVERS mysql postgresql 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=pdns_enable
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:-"--daemon=yes --guardian=yes"}
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"
|