From 8443dea6f4ecd1c29a08575fa4177305081275bf Mon Sep 17 00:00:00 2001 From: xnico31 <54291310+xnico31@users.noreply.github.com> Date: Tue, 14 Jan 2025 23:08:43 +0100 Subject: [PATCH] Add pkill to avoid old screen still running on MAJ --- scripts/tig_pool_master.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/tig_pool_master.sh b/scripts/tig_pool_master.sh index 3e96b0b..a99a13f 100755 --- a/scripts/tig_pool_master.sh +++ b/scripts/tig_pool_master.sh @@ -177,6 +177,11 @@ sed -i "s|@@path@@|$current_path/|g" pool_tig_launch_${id_slave}_${nom_slave}.sh echo "Script completed successfully. Files have been downloaded, configured, and the path has been updated." +pkill -f slave_tig && pkill -f pool_tig* + + + + # Start a new screen called pool_tig and execute the script pool_tig_launch_${id_slave}_${nom_slave}.sh screen -dmL -Logfile "$current_path/logs/pool_tig.log" -S pool_tig bash -c "cd \"$current_path\" && ./pool_tig_launch_${id_slave}_${nom_slave}.sh ; exec bash"