summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcore/modules/vmchooser2/data/opt/openslx/vmchooser/sessionstart6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/modules/vmchooser2/data/opt/openslx/vmchooser/sessionstart b/core/modules/vmchooser2/data/opt/openslx/vmchooser/sessionstart
index 1cc7eb5f..215077e3 100755
--- a/core/modules/vmchooser2/data/opt/openslx/vmchooser/sessionstart
+++ b/core/modules/vmchooser2/data/opt/openslx/vmchooser/sessionstart
@@ -1,5 +1,11 @@
#!/bin/ash
+# Give it some time, in case starting the session fails.
+# In that case, vmchooser will send us a SIGTERM, which will
+# hopefully happen within one second, so we wont't execute
+# all the sessionstart hooks.
+sleep 1
+
SOURCEPATH="/opt/openslx/vmchooser/sessionstart.d"
if [ -d "$SOURCEPATH" ]; then