#!/bin/sh # # $FreeBSD: ports/dns/maradns/files/maradns.in,v 1.5 2012/01/14 08:55:38 dougb Exp $ # # PROVIDE: maradns # REQUIRE: SERVERS # BEFORE: DAEMON # KEYWORD: shutdown # . /etc/rc.subr : ${maradns_enable="NO"} : ${maradns_conf="%%PREFIX%%/etc/mararc"} name="maradns" rcvar=maradns_enable command="%%PREFIX%%/bin/duende" pidfile="/var/run/${name}.pid" command_args="--pid=$pidfile %%PREFIX%%/sbin/maradns -f ${maradns_conf}" load_rc_config $name run_rc_command "$1"