@@ -95,7 +95,7 @@ log-all: current-chainstate-dir
9595 docker compose -f docker/docker-compose.yml --profile default -p $(PROJECT ) logs -t -f
9696
9797# Backup all service logs to $ACTIVE_CHAINSTATE_DIR/logs/<service-name>.log
98- backup-logs : /usr/bin/sudo
98+ backup-logs : current-chainstate-dir /usr/bin/sudo
9999 @if [ -f .current-chainstate-dir ]; then \
100100 $(eval ACTIVE_CHAINSTATE_DIR=$(shell cat .current-chainstate-dir) )
101101 if [ ! -d " $( ACTIVE_CHAINSTATE_DIR) " ]; then \
@@ -150,12 +150,13 @@ start: check-params current-chainstate-dir | check-running
150150 CHAINSTATE_DIR=$(ACTIVE_CHAINSTATE_DIR ) docker compose -f docker/docker-compose.yml --profile default -p $(PROJECT ) up -d $(PARAMS )
151151
152152# restart a service with a defined servicename/duration. called script will validate PARAMS
153+ # if no duration is provided, default of 30s shall be used
153154restart : check-params | check-running
154155 @echo " Restarting service"
155156 @echo " Params: $( PARAMS) "
156157 ./docker/tests/restart-container.sh $(PARAMS )
157158
158- # use 'stress' binary to consume cpu over a specified time
159+ # use 'stress' binary to consume defined cpu over a specified time
159160stress :
160161 @echo " Stressing system CPU $( PARAMS) "
161162 @echo " Cores: $( CORES) "
@@ -165,7 +166,6 @@ stress:
165166# run the test script to verify the services are all load and operating as expected
166167test :
167168 ./docker/tests/devnet-liveness.sh
168- exit 0
169169
170170# run the chain monitor script (loops and curls /v2/info, parsing the output to show current heights of miners)
171171monitor :
0 commit comments