summaryrefslogtreecommitdiff
path: root/dns/noip/files/noip.in
blob: 6b5edc96c9be51549a5802192c55f641733fa2a8 (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
#!/bin/sh

# PROVIDE: noip
# REQUIRE: NETWORKING SYSLOG DAEMON 
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# noip_enable (bool): Set to NO by default.
#                     Set it to YES to enable noip.
# noip_config (path): Set to %%PREFIX%%/etc/no-ip2.conf by default.
# noip_flags:         Set to -c %%PREFIX%%/etc/no-ip2.conf by default.
#

. %%RC_SUBR%%

name="noip"
rcvar=`set_rcvar`

command="%%PREFIX%%/bin/${name}"

load_rc_config $name

: ${noip_enable="NO"}
: ${noip_config="%%PREFIX%%/etc/no-ip2.conf"}
: ${noip_flags="-c $noip_config"}
: ${noip_user="noip"}
: ${noip_group="noip"}

required_files=${noip_config}

run_rc_command "$1"