This repository was archived by the owner on Apr 22, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111case $1 in
1212 run-bots)
1313 echo ' starting back-end and run-agent'
14- if [[ " ${LOG_TARGET:- } " != ' console' ]]; then
15- echo ' redirecting logs to file'
16- /bin/sh -c ' (yarn start_agent_api > log/agent_ui.log &) && (yarn run-agent > log/agent_run.log &) && (/bin/sh)'
17- else
18- echo ' logs will be printed to console'
19- /bin/sh -c ' (yarn start_agent_api &) && (yarn run-agent &) && (/bin/sh)'
20- fi
14+ yarn run-agent &
15+ yarn start_agent_api &
2116 ;;
2217 run-liquidator)
2318 echo ' starting liquidator'
24- if [[ " ${LOG_TARGET:- } " != ' console' ]]; then
25- echo ' redirecting logs to file'
26- /bin/sh -c ' (yarn run-liquidator > log/liquidator_run.log &) && (/bin/sh)'
27- else
28- echo ' logs will be printed to console'
29- /bin/sh -c ' (yarn run-liquidator &) && (/bin/sh)'
30- fi
19+ yarn run-liquidator &
3120 ;;
3221 run-challenger)
3322 echo ' starting challenger'
34- if [[ " ${LOG_TARGET:- } " != ' console' ]]; then
35- echo ' redirecting logs to file'
36- /bin/sh -c ' (yarn run-challenger > log/challenger_run.log &) && (/bin/sh)'
37- else
38- echo ' logs will be printed to console'
39- /bin/sh -c ' (yarn run-challenger &) && (/bin/sh)'
40- fi
23+ yarn run-challenger &
4124 ;;
4225 * )
43- # The wrong first argument.
4426 echo " invalid argument: '$1 '"
4527 echo $USAGE_MSG
4628 exit 1
47- esac
29+ esac
30+
31+ trap " echo 'caught SIGTERM, killing children'; kill 0" TERM INT
32+
33+ wait
You can’t perform that action at this time.
0 commit comments