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

23 lines
387 B
Bash

#!/bin/sh
# PROVIDE: Deadwood
# REQUIRE: SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown
#
. /etc/rc.subr
: ${dwood3_enable="NO"}
: ${dwood3_conf="%%ETCDIR%%/dwood3rc"}
name="Deadwood"
rcvar=dwood3_enable
command="%%PREFIX%%/bin/duende"
pidfile="/var/run/${name}.pid"
command_args="--pid=${pidfile} %%PREFIX%%/sbin/Deadwood -f ${dwood3_conf}"
load_rc_config $name
run_rc_command "$1"