From ef827827a47c9c3488e96815647a84999157ec17 Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 7 Dec 2022 15:37:50 +0100 Subject: [PATCH] NETWORK MICRO SERVICE -- PORTS : INPUT=33101 OUTPUT=33102 --- G1BILLETS.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/G1BILLETS.sh b/G1BILLETS.sh index 86316af..1177563 100755 --- a/G1BILLETS.sh +++ b/G1BILLETS.sh @@ -110,7 +110,7 @@ else ## MAKE IT A NETWORK MICRO SERVICE -- PORTS : INPUT=33101 OUTPUT=33102 ############## CLEAN START DEAMON MODE ### pidportinuse=$(ps axf --sort=+utime | grep -w "nc -l -p 33101" | grep -v -E 'color=auto|grep' | awk '{gsub(/^ +| +$/,"")} {print $0}' | tail -n 1 | cut -d " " -f 1) -[[ $pidportinuse ]] && echo "KILLING OLD DEAMON 33101 $pidportinuse" && kill -9 $pidportinuse; killall G1BILLETS.sh +[[ $pidportinuse ]] && echo "KILLING OLD DEAMON 33101 $pidportinuse" && kill -9 $pidportinuse && killall G1BILLETS.sh pidportinuse=$(ps axf --sort=+utime | grep -w "nc -l -p 33102" | grep -v -E 'color=auto|grep' | awk '{gsub(/^ +| +$/,"")} {print $0}' | tail -n 1 | cut -d " " -f 1) [[ $pidportinuse ]] && kill -9 $pidportinuse && echo "KILLING NOT COLLECTED THREAD $pidportinuse"