puppet/modules/rhizo_base/files/etc/sv/meas-json/run

10 lines
192 B
Bash
Executable file

#!/bin/bash
exec 2>&1
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