FreeBSD Bugzilla – Attachment 179460 Details for
Bug 212433
security/bro: Add rc script to work with rc.conf
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
bro rc
bro (text/plain), 1.18 KB, created by
Shirkdog
on 2017-01-31 03:24:43 UTC
(
hide
)
Description:
bro rc
Filename:
MIME Type:
Creator:
Shirkdog
Created:
2017-01-31 03:24:43 UTC
Size:
1.18 KB
patch
obsolete
>#!/bin/sh ># ># $FreeBSD$ ># > ># PROVIDE: bro ># REQUIRE: NETWORKING ># REQUIRE: LOGIN FILESYSTEMS ># KEYWORD: shutdown > >. /etc/rc.subr > >name="bro" >rcvar=`set_rcvar` >node=$2 > >start_cmd="bro_start" >stop_cmd="bro_stop" >restart_cmd="bro_restart" >deploy_cmd="bro_deploy" >install_cmd="bro_install" >cleanup_cmd="bro_cleanup" >restart_cmd="bro_restart" >status_cmd="bro_status" > >extra_commands="deploy install cleanup status restart" > >: ${broctl_program:=/usr/local/bin/broctl} > >bro_enable=${bro_enable-"NO"} > >bro_start() { > if [ ! "${node}" ]; > then > $broctl_program start > else > $broctl_program start $node > fi >} > >bro_stop() { > if [ ! "${node}" ]; > then > $broctl_program stop > else > $broctl_program stop $node > fi >} > >bro_restart() { > if [ ! "${node}" ]; > then > $broctl_program restart > else > $broctl_program restart $node > fi >} > >bro_deploy() { > $broctl_program deploy >} > >bro_install() { > $broctl_program install >} > >bro_cleanup() { > if [ ! "${node}" ]; > then > $broctl_program cleanup > else > $broctl_program cleanup ${node} > fi >} > >bro_status() { > $broctl_program status >} > >load_rc_config $name >run_rc_command "$1"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 212433
: 179460