freebsd-ports/dns/mydns/files/mydns.sh.in
Alex Dupre d152b63a1c Fix rcNG startup ordering and bump PORTREVISION.
Approved by:	portmgr (clement)
2006-03-07 16:27:27 +00:00

30 lines
483 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: mydns
# REQUIRE: DAEMON mysql postgresql
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable mydns:
# mydns_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable MyDNS.
#
. %%RC_SUBR%%
name="mydns"
rcvar=`set_rcvar`
load_rc_config $name
: ${mydns_enable="NO"}
command="%%PREFIX%%/sbin/mydns"
command_args="-b"
pidfile="/var/run/mydns.pid"
required_files="%%PREFIX%%/etc/mydns.conf"
run_rc_command "$1"