From c5f263fd9524ede082acbefef5f9c074d549ac38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Patron?= Date: Thu, 12 Dec 2024 23:08:29 +0100 Subject: [PATCH 1/3] review screen kill --- install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install.sh b/install.sh index b05ae1e..31553d5 100755 --- a/install.sh +++ b/install.sh @@ -16,8 +16,7 @@ client_version=$6 \mkdir tig_pool cd tig_pool -pkill pool_tig -pkill slave_tig +screen -ls | grep pool_tig | awk '{print $1}' | xargs -I {} screen -S {} -X kill wget https://raw.githubusercontent.com/tig-pool-nk/client/refs/heads/main/scripts/tig_pool_master.sh sudo chmod +x tig_pool_master.sh From b6044eb4f908792a3c585df0b9060d77e16bab0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Patron?= Date: Thu, 12 Dec 2024 23:11:14 +0100 Subject: [PATCH 2/3] detach/ratach screen --- scripts/tig_pool_master.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tig_pool_master.sh b/scripts/tig_pool_master.sh index 0cea6ff..9f9653b 100755 --- a/scripts/tig_pool_master.sh +++ b/scripts/tig_pool_master.sh @@ -160,4 +160,4 @@ screen -dmS pool_tig bash -c "cd \"$current_path\" && ./pool_tig_launch_${id_sla sleep 5 # Attach to the screen -screen -r pool_tig +screen -d -r pool_tig From 186544b0d528a04fb481ecf5f7586eadb29a5e3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Patron?= Date: Thu, 12 Dec 2024 23:12:23 +0100 Subject: [PATCH 3/3] don't activate python script --- scripts/tig_pool_master.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/tig_pool_master.sh b/scripts/tig_pool_master.sh index 9f9653b..f0849f7 100755 --- a/scripts/tig_pool_master.sh +++ b/scripts/tig_pool_master.sh @@ -103,13 +103,12 @@ cargo build -p tig-worker --release cd $current_path python3 -m venv venv -source venv/bin/activate mkdir -p tig-benchmarker cd tig-benchmarker wget https://raw.githubusercontent.com/tig-pool-nk/client/refs/heads/main/tig-benchmarker/slave.py -O slave.py wget https://raw.githubusercontent.com/tig-pool-nk/client/refs/heads/main/tig-benchmarker/requirements.txt -O requirements.txt -pip install -r requirements.txt +./venv/bin/pip3 install -r requirements.txt # Create a directory client_xnico_pool and navigate to it cd $current_path