aboutsummaryrefslogtreecommitdiffstats
path: root/Retesteth/eth/eth.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Retesteth/eth/eth.sh')
-rw-r--r--Retesteth/eth/eth.sh19
1 files changed, 17 insertions, 2 deletions
diff --git a/Retesteth/eth/eth.sh b/Retesteth/eth/eth.sh
index a822578d7..832408801 100644
--- a/Retesteth/eth/eth.sh
+++ b/Retesteth/eth/eth.sh
@@ -1,2 +1,17 @@
-echo "Starting $1 $2"
-eth --test --db-path $1 --ipcpath $2 --log-verbosity 4
+#!/bin/bash
+onexit()
+{
+ kill $child
+}
+trap onexit SIGTERM
+trap onexit SIGABRT
+
+##ARGUMENTS PASSED BY RETESTETH
+##
+## $1 <db-path> A path to database directory that a client should use
+## $2 <ipcpath> A path to the ipc socket file (has /geth.ipc at the end)
+#####
+
+eth --test --db-path $1 --ipcpath $2 --log-verbosity 5 &
+child=$!
+wait "$child"