mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-09 07:03:10 -06:00
22 lines
298 B
Bash
Executable file
22 lines
298 B
Bash
Executable file
#!/bin/bash -Eeu
|
|
|
|
cd $(dirname "$0")
|
|
|
|
source vars.env
|
|
|
|
echo "Stopping all from ${TEST_DIR}"
|
|
|
|
PID_FILE=${TEST_DIR}/pids.txt
|
|
|
|
if [ -f "$PID_FILE" ]
|
|
then
|
|
while read pid
|
|
do
|
|
[[ -n "$pid" ]] || continue
|
|
echo killing $pid
|
|
kill $pid
|
|
done < $PID_FILE
|
|
fi
|
|
|
|
rm -f $PID_FILE
|