1 #!/bin/sh /etc/rc.common
3 EXPORTER
=/usr
/sbin
/wprobe-ipfix
8 start-stop-daemon
"$cmd" -p "/var/run/wprobe-$cfg.pid" -b -x "$EXPORTER" -m -- "$@"
13 [ -f "/var/run/wprobe-$cfg.pid" ] && wprobe_ssd
"$cfg" -K
14 rm -f "/var/run/wprobe-$cfg.pid"
18 config_get ifname
"$cfg" ifname
19 config_get interval
"$cfg" interval
20 [ -n "$interval" ] || interval
=100
21 wprobe-info
"$ifname" -c -i "$interval"
26 config_get ifname
"$cfg" interface
27 config_get
host "$cfg" host
28 config_get port
"$cfg" port
29 config_get proto
"$cfg" proto
36 [ -z "$ifname" -o -z "$host" ] && {
37 echo "wprobe-export: missing host or interface name in config $cfg"
41 wprobe_ssd
"$cfg" -S "$proto" -i "$ifname" -c "$host" -p "${port:-4739}"
45 config_get export_type
"$cfg" type
46 case "$export_type" in
47 ipfix
) start_ipfix
"$cfg";;
52 for f
in /var
/run
/wprobe-
*.pid
; do
54 CFG
="${CFG##/var/run/wprobe-}"
61 config_foreach config_wprobe interface
62 [ -x "$EXPORTER" ] && config_foreach start_export
export