diff options
Diffstat (limited to 'src/auditor/test-revocation.sh')
-rwxr-xr-x | src/auditor/test-revocation.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/auditor/test-revocation.sh b/src/auditor/test-revocation.sh index 011585340..1aeb6b641 100755 --- a/src/auditor/test-revocation.sh +++ b/src/auditor/test-revocation.sh @@ -54,6 +54,9 @@ function exit_fail() { exit 1 } +# Clean up leftovers on start +rm -f libeufin-sandbox.pid libeufin-nexus.pid + function stop_libeufin() { echo "killing libeufin..." @@ -61,7 +64,7 @@ function stop_libeufin() then echo "Killing libeufin sandbox" PID=`cat libeufin-sandbox.pid 2> /dev/null` - kill $PID || true + kill $PID 2> /dev/null || true wait $PID rm libeufin-sandbox.pid fi @@ -69,7 +72,7 @@ function stop_libeufin() then echo "Killing libeufin nexus" PID=`cat libeufin-nexus.pid 2> /dev/null` - kill $PID || true + kill $PID 2> /dev/null || true wait $PID rm libeufin-nexus.pid fi |