cic-internal-integration/apps/cic-eth/docker/entrypoints/start_tasker.sh

32 lines
866 B
Bash
Raw Permalink Normal View History

2021-02-01 18:12:51 +01:00
#!/bin/bash
set -e
2021-02-01 18:12:51 +01:00
. ./db.sh
# set CONFINI_ENV_PREFIX to override the env prefix to override env vars
2021-09-06 21:07:57 +02:00
#echo "!!! starting signer"
#python /usr/local/bin/crypto-dev-daemon -c /usr/local/etc/crypto-dev-signer -vv 2> /tmp/signer.log &
2021-02-01 18:12:51 +01:00
2021-07-08 17:28:04 +02:00
echo "!!! starting taskerd"
2021-02-17 09:19:42 +01:00
/usr/local/bin/cic-eth-taskerd $@
2021-02-01 18:12:51 +01:00
# thanks! https://docs.docker.com/config/containers/multi-service_container/
2021-09-06 21:07:57 +02:00
#sleep 1;
#echo "!!! entering monitor loop"
#while true; do
# ps aux | grep crypto-dev-daemon | grep -q -v grep
# PROCESS_1_STATUS=$?
# ps aux | grep cic-eth-tasker |grep -q -v grep
# PROCESS_2_STATUS=$?
# # If the greps above find anything, they exit with 0 status
# # If they are not both 0, then something is wrong
# if [ $PROCESS_1_STATUS -ne 0 -o $PROCESS_2_STATUS -ne 0 ]; then
# echo "One of the processes has already exited."
# exit 1
# fi
# sleep 15;
#done
#
set +e