freebsd-ports/dns/ddns/files/ddns_server.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_server
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable ddns_server:
#
# ddns_server_enable (bool): Set it to "YES" to enable ddns server
# Default is "NO".
# ddns_server_conf (path): Set full path to config file.
# Default is "%%PREFIX%%/etc/ddns_server.conf".
. /etc/rc.subr
name=ddns_server
rcvar=ddns_server_enable
load_rc_config $name
: ${ddns_server_enable:=NO}
: ${ddns_server_conf="%%PREFIX%%/etc/ddns_server.conf"}
command=%%PREFIX%%/sbin/ddns-server
command_args="-d -c ${ddns_server_conf}"
required_files=${ddns_server_conf}
run_rc_command "$1"