force kill on error

This commit is contained in:
John
2021-11-13 12:39:37 +01:00
parent fcad0af16c
commit 9b2fc15133
+2 -1
View File
@@ -422,12 +422,13 @@ if [ "x$verify" != 'xaddress 04: slave #25, scanned "MF=153;ID=BBBBB;SW=3031;HW=
exit 1 exit 1
fi fi
sleep 2 sleep 2
kill $pid
echo `date` "ebusd log:" echo `date` "ebusd log:"
cat "$PWD/ebusd.log" cat "$PWD/ebusd.log"
echo `date` "done." echo `date` "done."
if [[ -n "$1" ]]; then if [[ -n "$1" ]]; then
kill $pid kill $pid
else
kill -9 $pid
fi fi
wait $srvpid wait $srvpid
exit $failed exit $failed