[X2Go-Commits] [maintenancescripts] 01/01: killstalevms.bash: disable debugging and echo a list of all running VMs.
git-admin at x2go.org
git-admin at x2go.org
Thu Feb 12 00:39:20 CET 2015
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository maintenancescripts.
commit eb58307579386ae764916d8cbccbb4c8043d42a9
Author: Mihai Moldovan <ionic at ionic.de>
Date: Thu Feb 12 00:39:15 2015 +0100
killstalevms.bash: disable debugging and echo a list of all running VMs.
---
killstalevms.bash | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/killstalevms.bash b/killstalevms.bash
index eb088cf..0379916 100644
--- a/killstalevms.bash
+++ b/killstalevms.bash
@@ -1,6 +1,6 @@
#/bin/bash
-set -x
+#set -x
typeset -a VM_LIST
typeset -i i
@@ -28,3 +28,15 @@ for ((i = 0; i < ${#BUILDER_LIST[@]}; ++i)); do
ARCH_LIST[$i]="$(perl -pe 's#.*?/pkg-dist/.*?/.*?/.*?/.*?/(.*?)\0.*#\1#' "${TMP_CMDLINE}")"
VERSION_LIST[$i]="$(perl -pe "s#.*?/${COMPONENT_LIST[$i]}_([\d.]+)-.*#\1#" "${TMP_CMDLINE}")"
done
+
+printf "Currently running VMs:\n\n"
+
+for ((i = 0; i < ${#BUILDER_LIST[@]}; ++i)); do
+ echo "$i:"
+ echo " PID: ${VM_LIST[$i]}"
+ echo " Component: ${COMPONENT_LIST[$i]}"
+ echo " Version: ${VERSION_LIST[$i]}"
+ echo " OS: ${SYSTEM_LIST[$i]} -- ${SYSTEM_VERSION_LIST[$i]} -- ${ARCH_LIST[$i]}"
+ echo " Branch: ${BRANCH_LIST[$i]}"
+ echo
+done
--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git
More information about the x2go-commits
mailing list