streaming-docker/tools/run-snowmix

14 lines
222 B
Bash
Executable File

#!/bin/bash
# Just a simple wrapper around snowmix, so that SIGTERM will make it shutdown
# gracefully
term_handler() {
echo 'quit' | nc -q1 127.0.0.1 9999
}
trap 'term_handler' SIGTERM
snowmix & wait ${!}
exit $?