Add pkill

to avoid old screen still running on MAJ
This commit is contained in:
xnico31 2025-01-14 23:08:43 +01:00
parent 908d50a63b
commit 8443dea6f4

View File

@ -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"