FreeBSD Bugzilla – Attachment 104511 Details for
Bug 144705
net-mgmt/flow-tools-ng: support for 'status' command for setups with profiles, minor grammatical fixes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.60 KB, created by
c.kworr
on 2010-03-12 21:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
c.kworr
Created:
2010-03-12 21:40:01 UTC
Size:
2.60 KB
patch
obsolete
>--- flow-tools-ng/files/flow_capture.in 2009-01-02 19:08:12.687551953 +0200 >+++ flow-tools-ng/files/flow_capture.in 2010-03-12 23:11:51.235598432 +0200 >@@ -14,9 +14,9 @@ > # flow_capture_datadir (str): Base flow data directory. > # Default is "/var/db/flows" > # flow_capture_localip (str): IP address to bind to >-# Default to "0.0.0.0" >+# Default is "0.0.0.0" > # flow_capture_remoteip (str): IP address to accept flows from >-# Default to "0.0.0.0" or all IPs >+# Default is "0.0.0.0" or all IPs > # flow_capture_port (int): Port to accept flow data on > # Default is "8787" > # flow_capture_flags (str): Custom additional arguments to be passed >@@ -39,7 +39,7 @@ > # with parameters taken from appropriate > # flow_capture_PROFILENAME_xxx variables. For > # unspecified parameters flow_capture_xxx >-# varialbes will be used. >+# variables will be used. > > . /etc/rc.subr > >@@ -78,6 +78,15 @@ > done > } > >+status_profiles() >+{ >+ unset status_cmd >+ for _profile in ${flow_capture_profiles}; do >+ setup_profile_vars $_profile >+ run_rc_command "${rc_arg}" >+ done >+} >+ > load_rc_config $name > > : ${flow_capture_enable="NO"} >@@ -105,6 +114,7 @@ > if [ "${flow_capture_profiles}" ]; then > start_cmd="start_profiles" > stop_cmd="stop_profiles" >+ status_cmd="status_profiles" > fi > > run_rc_command "$cmd" >--- /usr/ports/net-mgmt/flow-tools-ng/files/flow_fanout.in 2009-07-16 04:29:06.125515729 +0300 >+++ flow-tools-ng/files/flow_fanout.in 2010-03-12 23:18:09.399529475 +0200 >@@ -12,9 +12,9 @@ > # flow_fanout_enable (bool): Set it to "YES" to enable flow-fanout daemon. > # Set to "NO" by default. > # flow_fanout_ip (str): IP address to bind to >-# Default to "0.0.0.0" >+# Default is "0.0.0.0" > # flow_fanout_remoteip (str): IP address to accept flows from >-# Default to "0.0.0.0" or all IPs >+# Default is "0.0.0.0" or all IPs > # flow_fanout_port (int): Port to accept flow data on > # Default is "8787" > # flow_fanout_export (str): Where to send flows to. Default is "0/0/8788" >@@ -36,7 +36,7 @@ > # with parameters taken from appropriate > # flow_fanout_PROFILENAME_xxx variables. For > # unspecified parameters flow_fanout_xxx >-# varialbes will be used. >+# variables will be used. > > . /etc/rc.subr > >@@ -73,6 +73,15 @@ > done > } > >+status_profiles() >+{ >+ unset status_cmd >+ for _profile in ${flow_fanout_profiles}; do >+ setup_profile_vars $_profile >+ run_rc_command "${rc_arg}" >+ done >+} >+ > load_rc_config $name > > : ${flow_fanout_enable="NO"} >@@ -99,6 +108,7 @@ > if [ "${flow_fanout_profiles}" ]; then > start_cmd="start_profiles" > stop_cmd="stop_profiles" >+ status_cmd="status_profiles" > fi > > run_rc_command "$cmd"
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 144705
: 104511