#!/bin/sh
#
# $FreeBSD: ports/dns/ddclient/files/ddclient.in,v 1.1 2006/05/07 00:03:25 mnag Exp $
#
# PROVIDE: ddclient
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable ddclient:
#
# ddclient_enable="YES"
#

. /etc/rc.subr

name="ddclient"
rcvar=${name}_enable

command="/usr/local/sbin/${name}"
required_files="/usr/local/etc/${name}.conf"

load_rc_config ${name}

: ${ddclient_enable="NO"}
: ${ddclient_flags="-daemon 300"}

run_rc_command "$1"


syntax highlighted by Code2HTML, v. 0.9.1