ail-framework/docker_start.sh
Terrtia 653463a8c4
fix: [LAUNCH.sh] make pystemon optionnal
AIL and Pystemon are independent, pystemon shouldn't be launch by default.
2018-09-19 09:52:27 +02:00

20 lines
307 B
Bash
Executable file

#!/bin/bash
signalListener() {
"$@" &
pid="$!"
trap "echo 'Stopping'; kill -SIGTERM $pid" SIGINT SIGTERM
while kill -0 $pid > /dev/null 2>&1; do
wait
done
}
source ./AILENV/bin/activate
cd bin
./LAUNCH.sh -l
./LAUNCH.sh -f
signalListener tail -f /dev/null $@
./LAUNCH.sh -k