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 ################################################################## ############################################################################################################