a20f79264a
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/167739 Submitted by: Tom Judge <tom@tomjudge.com>
33 lines
630 B
Bash
33 lines
630 B
Bash
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: masterNugget_safed
|
|
# REQUIRE: masterNugget
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable the razorback master nugget safed:
|
|
#
|
|
# masterNugget_safed_enable="YES"
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=masterNugget_safed
|
|
rcvar=masterNugget_safed_enable
|
|
|
|
load_rc_config $name
|
|
|
|
masterNugget_safed_enable=${masterNugget_safed_enable:-"NO"}
|
|
|
|
command="%%PREFIX%%/bin/masterNugget_safed"
|
|
|
|
pidfile="/var/run/masterNugget_safed.pid"
|
|
start_cmd=masterNugget_safed_start
|
|
procname="/bin/sh"
|
|
|
|
masterNugget_safed_start()
|
|
{
|
|
/usr/sbin/daemon -cf -p ${pidfile} ${command}
|
|
}
|
|
|
|
run_rc_command "$1"
|