summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
authorJonathan Bauer2013-11-14 16:06:46 +0100
committerJonathan Bauer2013-11-14 16:06:46 +0100
commit1a438fc4c47a66852f1e59f694b28bf6168afd8c (patch)
treed35c569619aafad75c4e750fa4c2e96c1f525442 /remote
parent[pam-freiburg] added check for hung mount home directory stuff (diff)
downloadtm-scripts-1a438fc4c47a66852f1e59f694b28bf6168afd8c.tar.gz
tm-scripts-1a438fc4c47a66852f1e59f694b28bf6168afd8c.tar.xz
tm-scripts-1a438fc4c47a66852f1e59f694b28bf6168afd8c.zip
[vmchooser] quick fix for tcpsrvd not exiting properly.
Diffstat (limited to 'remote')
-rwxr-xr-xremote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt16
1 files changed, 8 insertions, 8 deletions
diff --git a/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt b/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt
index dac60520..01456c0f 100755
--- a/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt
+++ b/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt
@@ -519,20 +519,20 @@ if [ -e /opt/openslx/etc/"${xmlvirt}"/run-virt.include ] ; then
sleep "$timeout"
done
fi
-
+ # Postrun for commands after virtualization finishes
+ if [ -n "${POSTRUN}" ]; then
+ eval ${POSTRUN} >/dev/null 2>&1
+ fi
+
+ # Kill LPD
+ kill $PID_LPD
+
cleanexit 0
else
writelog "Failed because of missing ${xmlvirt} plugin."
cleanexit 1
fi
-# Postrun for commands after virtualization finishes
-if [ -n "${POSTRUN}" ]; then
- eval ${POSTRUN} >/dev/null 2>&1
-fi
-
-# Kill LPD
-kill $PID_LPD
cleanexit 0