dev/modules/sysconfig/files/clean-testserver.sh
author ymh <ymh.work@gmail.com>
Fri, 14 Mar 2014 10:03:37 +0100
changeset 610 dc75c8d65289
parent 609 736fdedb7774
permissions -rwxr-xr-x
add a way to specify the custom.yaml file path with the SYSCONFIG env variable

#!/bin/bash

PID=$(cat /tmp/testserver.pid|cut -d"|" -f1)
OUTFILE=$(cat /tmp/testserver.pid|cut -d"|" -f2)

echo "Kill test server pid $PID"
kill $PID

echo "Test server log:"
echo "================================================================================"
cat "$OUTFILE"
echo "================================================================================"

echo "Clean testserver output"
rm "$OUTFILE"