#!/bin/sh # $FreeBSD$ # # PROVIDE: dispatcher_safed # REQUIRE: dispatcher # KEYWORD: shutdown # # Add the ollowing lines to /etc/rc.conf to enable dispatcher_safed: # # dispatcher_safed_enable="YES" . /etc/rc.subr name=dispatcher_safed rcvar=dispatcher_safed_enable load_rc_config $name dispatcher_safed_enable=${dispatcher_safed_enable:-"NO"} pidfile="/var/run/dispatcher_safed.pid" command="%%PREFIX%%/bin/dispatcher_safed" start_cmd=dispatcher_safed_start procname="/bin/sh" dispatcher_safed_start() { /usr/sbin/daemon -cf -p ${pidfile} ${command} } run_rc_command "$1"