mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-23 14:37:17 +00:00
19 lines
292 B
Bash
Executable file
19 lines
292 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
|
|
|
|
signalListener tail -f /dev/null $@
|
|
|
|
./LAUNCH.sh -k
|