freebsd-ports/dns/ddns/files/ddns_client.in
Frederic Culot ed8be0acde ddns is a lightweight UDP-based dynamic DNS updater.
It consists of a client that regularly sends UDP packets and a
server that updates a bind zone file or runs a command using the
peer IPv4 address of recieved UDP packets.

WWW: http://fossil.instinctive.eu/ddns/home

PR:		ports/179316
Submitted by:	Natacha Porte <natbsd@instinctive.eu>
2013-07-01 12:53:39 +00:00

29 lines
713 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: ddns_client
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable ddns_client:
#
# ddns_client_enable (bool): Set it to "YES" to enable ddns client
# Default is "NO".
# ddns_client_conf (path): Set full path to config file.
# Default is "%%PREFIX%%/etc/ddns_client.conf".
. /etc/rc.subr
name=ddns_client
rcvar=ddns_client_enable
load_rc_config $name
: ${ddns_client_enable:=NO}
: ${ddns_client_conf="%%PREFIX%%/etc/ddns_client.conf"}
command=%%PREFIX%%/sbin/ddns-client
command_args="-d -c ${ddns_client_conf}"
required_files=${ddns_client_conf}
run_rc_command "$1"