diff --git a/hiveos_packager/h-run.sh b/hiveos_packager/h-run.sh index 1ddcd3d..2a10e43 100644 --- a/hiveos_packager/h-run.sh +++ b/hiveos_packager/h-run.sh @@ -1,16 +1,17 @@ #!/usr/bin/env bash -[[ `ps aux | grep "quai-gpu-miner" | grep -v grep | wc -l` != 0 ]] && +[[ `pgrep -f "quai-gpu-miner --api-bind" | wc -l` != 0 ]] && echo -e "${RED}$CUSTOM_NAME miner is already running${NOCOLOR}" && exit 1 . h-manifest.conf - conf=`cat $MINER_CONFIG_FILENAME` -if [[ $conf=~';' ]]; then - conf=`echo $conf | tr -d '\'` +if [[ $conf =~ ';' ]]; then + conf=`echo $conf | tr -d '\\'` fi eval "unbuffer ./quai-gpu-miner ${conf//;/'\;'} --api-bind 127.0.0.1:21373" + +sleep 10 \ No newline at end of file