puppet/modules/rhizo_base/files/etc/sv/meas-json/run
Keith Whyte 03536a69c9 Improve on last commit
Use runit custom control scripts to end child processes
2021-02-24 06:33:04 +01:00

6 lines
194 B
Bash
Executable file

#!/bin/bash
exec 2>&1
if [ -a /tmp/json_socket ]; then
rm -f /tmp/json_socket
fi
exec chpst -P /bin/sh -c '/usr/bin/stdbuf -oL /usr/bin/meas_json | ncat -l -U /tmp/json_socket -k --send-only'