Update dns/ddclient to version 3.9.0
[dports.git] / dns / ddclient / files / ddclient.in
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5 # PROVIDE: ddclient
6 # REQUIRE: LOGIN
7 # KEYWORD: shutdown
8 #
9 # Add the following line to /etc/rc.conf to enable ddclient:
10 #
11 # ddclient_enable="YES"
12 #
13 # By default, ddclient does not daemonize.  To launch ddclient
14 # as a daemon, add the -daemon 300 argument to ddclient_flags
15 #
16
17 . /etc/rc.subr
18
19 name="ddclient"
20 rcvar=ddclient_enable
21
22 command="%%PREFIX%%/sbin/${name}"
23 required_files="%%PREFIX%%/etc/${name}.conf"
24
25 load_rc_config ${name}
26
27 : ${ddclient_enable="NO"}
28
29 run_rc_command "$1"