summaryrefslogtreecommitdiff
path: root/net/ddclient/files/ddclient.sh
blob: 9b21bb18ebd9803380663e2b1c2df93b36bd64ef (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
#!/bin/sh
#
# $NetBSD: ddclient.sh,v 1.1 2001/12/09 19:55:36 jlam Exp $
#
# Dynamic DNS update client
#
# PROVIDE: ddclient
# REQUIRE: DAEMON

if [ -e /etc/rc.subr ]
then
	. /etc/rc.subr
fi

name="ddclient"
rcvar=${name}
command="@PREFIX@/sbin/${name}"
pidfile="/var/run/${name}.pid"
required_files="@PERL5@ @PKG_SYSCONFDIR@/${name}.conf"
extra_commands="reload"

if [ -e /etc/rc.subr ]
then
	load_rc_config $name
	run_rc_command "$1"
else
	@ECHO@ -n " ${name}"
	${command} ${ddclient_flags} ${command_args}
fi