From 5f779a00e3b38ca3b18c6b8f1cdeed6f8e96d13e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Wed, 8 Oct 2014 12:04:41 +0000 Subject: [PATCH] output of worker changed worker with task have $0 set to e.g: 1024 ? Sl 0:48 \_ worker-PC 1 Task: 51919-fedora-19-i386 --- files/copr/delete-forgotten-instances.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/copr/delete-forgotten-instances.pl b/files/copr/delete-forgotten-instances.pl index 8aa5d41f78..16c9a6c344 100644 --- a/files/copr/delete-forgotten-instances.pl +++ b/files/copr/delete-forgotten-instances.pl @@ -2,7 +2,7 @@ # this scrip query for all running VM and terminate those # which are not currently started by some ansible script -while (chomp($a = qx(ps ax |grep -v 'sh -c ps ax' |grep /home/copr/provision/builderpb.yml | grep -v grep))) { +while (chomp($a = qx(ps ax |grep -v 'sh -c ps ax' |grep 'Task: ' | grep -v grep))) { # we are starting some VM and could not determine correct list of running VMs sleep 5; }