From b5893ed7a85ed2fab77630c043eb3c7ee12aa63e Mon Sep 17 00:00:00 2001 From: punix Date: Wed, 15 Nov 2023 20:39:59 +0100 Subject: [PATCH] yad notify pid wird gespeichert --- wg_stop | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wg_stop b/wg_stop index e9c4c8b..fa146b7 100755 --- a/wg_stop +++ b/wg_stop @@ -41,8 +41,8 @@ export TEXTDOMAINDIR="/usr/share/locale" --text=$""$VALUE" Connection disconnected" fi done - IFS=$'\n' lines=( $(cat ${WG_WDIR}Notify_PID.txt) ) - kill $lines #> /dev/null 2>&1 + IFS=$'\n' lines=( $(awk '{print $2}' ${WG_WDIR}Notify_PID.txt) ) # Dies zeigt auf die richtige pid + kill -n "$lines" #> /dev/null 2>&1 ################################# END ################################################################## ############################################################################################################