1 #!/bin/sh /etc/rc.common
3 EXPORTER=/sbin/wprobe-export
10 start-stop-daemon "$cmd" -p "/var/run/wprobe-$type.pid" -b ${app:+-x "$app"} -m -- "$@"
15 [ -f "/var/run/wprobe-$type.pid" ] && wprobe_ssd -K "$type"
16 rm -f "/var/run/wprobe-$type.pid"
20 config_get ifname "$cfg" ifname
21 config_get interval "$cfg" interval
22 [ -n "$interval" ] || interval=100
23 $UTIL "$ifname" -i "$interval" 2>/dev/null >/dev/null
27 config_get port "$cfg" port
28 wprobe_ssd -S proxy "$UTIL" -P -p "${port:-17990}"
33 config_get ifname "$cfg" ifname
34 config_get host "$cfg" host
35 config_get port "$cfg" port
36 config_get proto "$cfg" proto
43 [ -z "$ifname" -o -z "$host" ] && {
44 echo "wprobe-export: missing host or interface name in config $cfg"
48 wprobe_ssd -S "export-$cfg" "$EXPORTER" "$proto" -i "$ifname" -c "$host" -p "${port:-4739}"
53 config_get export_type "$cfg" type
54 case "$export_type" in
55 ipfix) [ -x "$EXPORTER" ] && start_ipfix "$cfg";;
56 wprobe) start_proxy "$cfg";;
61 for f in /var/run/wprobe-*.pid; do
63 CFG="${CFG##/var/run/wprobe-}"
70 config_foreach config_wprobe interface
71 config_foreach start_export export