[Bug 212433] security/bro: Add rc script to work with rc.conf
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Sep 6 21:47:44 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212433
Bug ID: 212433
Summary: security/bro: Add rc script to work with rc.conf
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: freebsd-ports-bugs at FreeBSD.org
Reporter: mshirk at daemon-security.com
CC: leres at ee.lbl.gov
Flags: maintainer-feedback?(leres at ee.lbl.gov)
CC: leres at ee.lbl.gov
In the latest Bro port for 2.4.1, a basic RC script is missing to allow for
users to startup bro with the init system on system boot.
I have a script I have used for a while now, it utilizes the new features in
Bro (such as broctl deploy) to handle starting up and shutdown. Status is
tricky, as you use broctl for status.
#!/bin/sh
#
# PROVIDE: bro
# REQUIRE: NETWORKING
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
. /etc/rc.subr
name="bro"
rcvar=`set_rcvar`
load_rc_config $name
start_cmd="bro_start"
stop_cmd="bro_stop"
restart_cmd="bro_restart"
: ${broctl_program:=/usr/local/bin/broctl}
bro_enable=${bro_enable-"NO"}
bro_start() {
$broctl_program deploy
}
bro_stop() {
$broctl_program stop
}
bro_restart() {
bro_stop
bro_start
}
run_rc_command "$1"
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list