summaryrefslogtreecommitdiff
path: root/dns/ddns/files/ddns_client.in
blob: e751d770e8ed9751b5ee3413e92682cc9be18586 (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
26
27
28
#!/bin/sh

# PROVIDE: ddns_client
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable ddns_client:
#
# ddns_client_enable (bool):    Set it to "YES" to enable ddns client
#                               Default is "NO".
# ddns_client_conf (path):      Set full path to config file.
#                               Default is "%%PREFIX%%/etc/ddns_client.conf".

. /etc/rc.subr

name=ddns_client
rcvar=ddns_client_enable

load_rc_config $name

: ${ddns_client_enable:=NO}
: ${ddns_client_conf="%%PREFIX%%/etc/ddns_client.conf"}

command=%%PREFIX%%/sbin/ddns-client
command_args="-d -c ${ddns_client_conf}"
required_files=${ddns_client_conf}

run_rc_command "$1"