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