1 #!/bin/sh /etc/rc.common
7 start-stop-daemon "$cmd" -p "/var/run/wprobe-$cfg.pid" -b -x /sbin/wprobe-export -m -- "$@"
12 [ -f "/var/run/wprobe-$cfg.pid" ] && wprobe_ssd "$cfg" -K
13 rm -f "/var/run/wprobe-$cfg.pid"
18 config_get ifname "$cfg" interface
19 config_get host "$cfg" host
20 config_get port "$cfg" port
21 config_get proto "$cfg" proto
28 [ -z "$ifname" -o -z "$host" ] && {
29 echo "wprobe-export: missing host or interface name in config $cfg"
32 wprobe_ssd "$cfg" -S "$proto" -i "$ifname" -c "$host" -p "${port:-4739}"
36 for f in /var/run/wprobe-*.pid; do
38 CFG="${CFG##/var/run/wprobe-}"
45 config_foreach start_wprobe wprobe