summaryrefslogtreecommitdiffstats
path: root/dns/ez-ipupdate/files/ez-ipupdate.sh.in
blob: 1209b62e4770f930e704a700144b0dc34df373aa (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
29
30
31
32
33
#!/bin/sh
#
# $FreeBSD$
#

# PROVIDE: ez-ipupdate
# REQUIRE:
# BEFORE:
# KEYWORD: shutdown

# Add the following line to /etc/rc.conf to enable ez-ipupdate:
#
#ez_ipupdate_enable="YES"
#

. /etc/rc.subr

name=ez_ipupdate
rcvar=ez_ipupdate_enable

load_rc_config $name

: ${ez_ipupdate_enable="NO"}
: ${ez_ipupdate_pidfile="/var/run/ez-ipupdate.pid"}
: ${ez_ipupdate_configfile="%%PREFIX%%/etc/ez-ipupdate.conf"}
: ${ez_ipupdate_flags="-d -c $ez_ipupdate_configfile -F $ez_ipupdate_pidfile"}

command=%%PREFIX%%/bin/ez-ipupdate
pidfile=$ez_ipupdate_pidfile
required_files=$ez_ipupdate_configfile
sig_stop=QUIT

run_rc_command "$1"
OpenPOWER on IntegriCloud