summaryrefslogtreecommitdiff
path: root/dns/maradns/files/zoneserver.in
blob: 95a26bf98da20c4d56819ba8d465ccd98335d902 (plain)
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
#!/bin/sh
#
# $FreeBSD$
#

# PROVIDE: zoneserver
# REQUIRE: SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown
#

. /etc/rc.subr

: ${zoneserver_enable="NO"}
: ${maradns_conf="%%ETCDIR%%/mararc"}

name="zoneserver"
rcvar=zoneserver_enable
command="%%PREFIX%%/bin/duende"
pidfile="/var/run/${name}.pid"
command_args="--pid=${pidfile} %%PREFIX%%/sbin/zoneserver -f ${maradns_conf}"

load_rc_config $name

run_rc_command "$1"