ports/security/razorback-dispatcher/files/dispatcher_safed.in
Ryan Steinmetz 849135e9c6 New port: security/razorback-dispatcher:
Razorback is a framework for an intelligence driven security solution.
It consists of a Dispatcher at the core of the system, surrounded by
Nuggets of varying types.

WWW: http://razorbacktm.sourceforge.net/

PR:		ports/167738
Submitted by:	Tom Judge <tom@tomjudge.com>
2012-06-11 02:20:53 +00:00

32 lines
582 B
Bash

#!/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"