From 1a438fc4c47a66852f1e59f694b28bf6168afd8c Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 14 Nov 2013 16:06:46 +0100 Subject: [vmchooser] quick fix for tcpsrvd not exiting properly. --- .../data/opt/openslx/scripts/vmchooser-run_virt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'remote/modules') 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 -- cgit v1.2.3-55-g7522