View | Details | Raw Unified | Return to bug 144705
Collapse All | Expand All

(-)flow-tools-ng/files/flow_capture.in (-3 / +13 lines)
Lines 14-22 Link Here
14
# flow_capture_datadir (str):	Base flow data directory.
14
# flow_capture_datadir (str):	Base flow data directory.
15
#				Default is "/var/db/flows"
15
#				Default is "/var/db/flows"
16
# flow_capture_localip (str):	IP address to bind to
16
# flow_capture_localip (str):	IP address to bind to
17
#				Default to "0.0.0.0"
17
#				Default is "0.0.0.0"
18
# flow_capture_remoteip (str):	IP address to accept flows from
18
# flow_capture_remoteip (str):	IP address to accept flows from
19
#				Default to "0.0.0.0" or all IPs
19
#				Default is "0.0.0.0" or all IPs
20
# flow_capture_port (int):	Port to accept flow data on
20
# flow_capture_port (int):	Port to accept flow data on
21
#				Default is "8787"
21
#				Default is "8787"
22
# flow_capture_flags (str):	Custom additional arguments to be passed
22
# flow_capture_flags (str):	Custom additional arguments to be passed
Lines 39-45 Link Here
39
#				with parameters taken from appropriate
39
#				with parameters taken from appropriate
40
#				flow_capture_PROFILENAME_xxx variables. For
40
#				flow_capture_PROFILENAME_xxx variables. For
41
#				unspecified parameters flow_capture_xxx
41
#				unspecified parameters flow_capture_xxx
42
#				varialbes will be used.
42
#				variables will be used.
43
43
44
. /etc/rc.subr
44
. /etc/rc.subr
45
45
Lines 78-83 Link Here
78
	done
78
	done
79
}
79
}
80
80
81
status_profiles()
82
{
83
	unset status_cmd
84
	for _profile in ${flow_capture_profiles}; do
85
		setup_profile_vars $_profile
86
		run_rc_command "${rc_arg}"
87
	done
88
}
89
81
load_rc_config $name
90
load_rc_config $name
82
91
83
: ${flow_capture_enable="NO"}
92
: ${flow_capture_enable="NO"}
Lines 105-110 Link Here
105
if [ "${flow_capture_profiles}" ]; then
114
if [ "${flow_capture_profiles}" ]; then
106
	start_cmd="start_profiles"
115
	start_cmd="start_profiles"
107
	stop_cmd="stop_profiles"
116
	stop_cmd="stop_profiles"
117
	status_cmd="status_profiles"
108
fi
118
fi
109
119
110
run_rc_command "$cmd"
120
run_rc_command "$cmd"
(-)flow-tools-ng/files/flow_fanout.in (-3 / +13 lines)
Lines 12-20 Link Here
12
# flow_fanout_enable (bool):	Set it to "YES" to enable flow-fanout daemon.
12
# flow_fanout_enable (bool):	Set it to "YES" to enable flow-fanout daemon.
13
#				Set to "NO" by default.
13
#				Set to "NO" by default.
14
# flow_fanout_ip (str):		IP address to bind to
14
# flow_fanout_ip (str):		IP address to bind to
15
#				Default to "0.0.0.0"
15
#				Default is "0.0.0.0"
16
# flow_fanout_remoteip (str):	IP address to accept flows from
16
# flow_fanout_remoteip (str):	IP address to accept flows from
17
#				Default to "0.0.0.0" or all IPs
17
#				Default is "0.0.0.0" or all IPs
18
# flow_fanout_port (int):	Port to accept flow data on
18
# flow_fanout_port (int):	Port to accept flow data on
19
#				Default is "8787"
19
#				Default is "8787"
20
# flow_fanout_export (str):	Where to send flows to. Default is "0/0/8788"
20
# flow_fanout_export (str):	Where to send flows to. Default is "0/0/8788"
Lines 36-42 Link Here
36
#				with parameters taken from appropriate
36
#				with parameters taken from appropriate
37
#				flow_fanout_PROFILENAME_xxx variables. For
37
#				flow_fanout_PROFILENAME_xxx variables. For
38
#				unspecified parameters flow_fanout_xxx
38
#				unspecified parameters flow_fanout_xxx
39
#				varialbes will be used.
39
#				variables will be used.
40
40
41
. /etc/rc.subr
41
. /etc/rc.subr
42
42
Lines 73-78 Link Here
73
	done
73
	done
74
}
74
}
75
75
76
status_profiles()
77
{
78
	unset status_cmd
79
	for _profile in ${flow_fanout_profiles}; do
80
		setup_profile_vars $_profile
81
		run_rc_command "${rc_arg}"
82
	done
83
}
84
76
load_rc_config $name
85
load_rc_config $name
77
86
78
: ${flow_fanout_enable="NO"}
87
: ${flow_fanout_enable="NO"}
Lines 99-104 Link Here
99
if [ "${flow_fanout_profiles}" ]; then
108
if [ "${flow_fanout_profiles}" ]; then
100
	start_cmd="start_profiles"
109
	start_cmd="start_profiles"
101
	stop_cmd="stop_profiles"
110
	stop_cmd="stop_profiles"
111
	status_cmd="status_profiles"
102
fi
112
fi
103
113
104
run_rc_command "$cmd"
114
run_rc_command "$cmd"

Return to bug 144705