summaryrefslogtreecommitdiff
path: root/dns/acme-dns/files/acme_dns.in
blob: aa60466036ed522e4e89fa407cb1cf37f9eacf98 (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
#!/bin/sh
# $FreeBSD$
#

# PROVIDE: acme-dns
# REQUIRE: LOGIN cleanvar
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf[.local] to enable acme-dns:
# acme_dns_enable="YES"
#

. /etc/rc.subr

name="acme_dns"
rcvar=${name}_enable

load_rc_config $name

#defaults
: ${acme_dns_enable="NO"}
: ${acme_dns_cmd="%%PREFIX%%/libexec/acme-dns"}
: ${acme_dns_pidfile="/var/run/acme-dns/acme-dns.pid"}
: ${acme_dns_log="/var/log/acme-dns.log"}
: ${acme_dns_args=""}
: ${acme_dns_svcj_options:="net_basic"}

pidfile=${acme_dns_pidfile}
command="/usr/sbin/daemon"
command_args="-P ${pidfile} -r -f -m 3 -o ${acme_dns_log} ${acme_dns_cmd} ${acme_dns_args}"

run_rc_command "$1"