summaryrefslogtreecommitdiff
path: root/dns/ddclient/files/ddclient.in
blob: 611579ce68cdeb5845283ef2e5a78b4b7bebf0fd (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
#!/bin/sh

# PROVIDE: ddclient
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable ddclient:
#
# ddclient_enable="YES"
#
# By default, ddclient does not daemonize.  To launch ddclient
# as a daemon, add the -daemon 300 argument to ddclient_flags
#

. /etc/rc.subr

name="ddclient"
rcvar=ddclient_enable

command="%%PREFIX%%/sbin/${name}"
required_files="%%PREFIX%%/etc/${name}.conf"

load_rc_config ${name}

: ${ddclient_enable="NO"}

run_rc_command "$1"