freebsd-ports/dns/dns_balance/files/dns_balance.sh.in
Rong-En Fan 62801042a0 - Update to 2.0
- Fix rc script, use command_interpreter to make it stop properly
- Pass maintainership to submitter

PR:		ports/101672
Submitted by:	Stanislav Sedov <ssedov at mbsd.msk.ru>
2006-08-12 03:56:54 +00:00

24 lines
476 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: dns_balance
# REQUIRE: DAEMON
. %%RC_SUBR%%
name=dns_balance
rcvar=`set_rcvar`
load_rc_config ${name}
: ${dns_balance_enable="NO"}
: ${dns_balance_logfile="/var/log/${name}.log"}
: ${dns_balance_pidfile="/var/log/${name}.pid"}
: ${dns_balance_flags=""}
command="%%PREFIX%%/sbin/${name}"
command_args="-l ${dns_balance_logfile} -p ${dns_balance_pidfile}"
command_interpreter=%%RUBY%%
pidfile=${dns_balance_pidfile}
run_rc_command "$1"