aboutsummaryrefslogtreecommitdiff
path: root/dns/powerdns-devel/files/pdns.sh.in
blob: 372ef7707693eac0960658b94e55350a5e1f9d7b (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
#!/bin/sh
#
# $FreeBSD$
#

# PROVIDE: pdns_server
# REQUIRE: DAEMON
# KEYWORD: FreeBSD shutdown

#
# Add the following lines to /etc/rc.conf to enable dovecot:
#
#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}

run_rc_command "$1"