###Scripts version 2006###

This commit is contained in:
castro-fidel
2021-09-03 18:17:42 +02:00
parent ea518e5f21
commit e291a2e90d
8 changed files with 46 additions and 22 deletions

View File

@ -576,7 +576,7 @@ pw_kill_autostart () {
else
sleep 10
while true ; do
if [ -z "`ps aux | grep "$1" | head -n 1 | awk '{print $2}'`" ] && [ ! -z "`pgrep wrap | head -n 1`" ]; then
if [ -z "`ps aux | grep "$1" | head -n 1 | awk '{print $2}' | grep -v grep`" ] && [ ! -z "`pgrep wrap | head -n 1`" ]; then
echo -e "PID "$1" not found"
sleep 1
else