#!/bin/sh 
#            
# license: Standard BSD2CLAUSE (BSD 2-clause Simplified License),
# Please read from the web.
#           
            
#
#
# PROVIDE: dynip
# REQUIRE: LOGIN DAEMON NETWORKING
# KEYWORD: nojail shutdown
#
# Add the following line to /etc/rc.conf to enable dynip
#
# dynip_enable="YES"
#

. /etc/rc.subr

name="dynip"

rcvar=${name}_enable

pidfile="/var/run/${name}.pid"

command="/usr/sbin/daemon"

load_rc_config ${name}

command_args="-P ${pidfile} -f -s err /usr/local/bin/${name}"

run_rc_command "$1"
