Use ncat with meas web for multiple clients

This commit is contained in:
Keith Whyte 2021-02-24 04:59:18 +01:00
parent a41ded0246
commit 93e5fa8956
5 changed files with 12 additions and 14 deletions

View file

@ -1,4 +1,10 @@
#!/bin/bash
exec 2>&1
exec /usr/bin/stdbuf -oL /usr/bin/meas_json > /tmp/json_pipe
if [ -a /tmp/json_socket ]; then
killall ncat
killall meas_json
rm -f /tmp/json_socket
fi
exec /etc/sv/meas-json/scr | ncat -l -U /tmp/json_socket -k --send-only