freebsd-ports/dns/mydns-ng/files/mydns.in
2021-04-06 16:31:13 +02:00

27 lines
469 B
Bash

#!/bin/sh
# 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.
#
. /etc/rc.subr
name="mydns"
rcvar=mydns_enable
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"