Index: trunk/bin/systemstart_dev_practice_session.sh
===================================================================
--- trunk/bin/systemstart_dev_practice_session.sh	(revision 663)
+++ trunk/bin/systemstart_dev_practice_session.sh	(revision 679)
@@ -1,3 +1,14 @@
-#!/bin/sh
+#!/bin/bash
+
+# Kill any process leftover from previous run
+kill $(ps  aux | grep "[p]ython -m CGIHTTPServer 8080" | awk '{print $2}')
+kill $(ps  aux | grep "[p]ython deploy/unifiedlogger.zip" | awk '{print $2}')
+
+# Get path to this script
+# $0 contains path to the script file, even if launched from file manager
+SCRIPT_PATH=$(dirname "$(readlink -f "$0")")
+# CD to the script folder
+cd "$SCRIPT_PATH"
+
 # Start the Simulator System with the practice script
 cd ../webapps
@@ -5,11 +16,11 @@
 sleep 1
 cd ..
-java -DPROP_FILE=cad_server_practice.properties -jar deploy/CADserver.jar &
+java -DCONFIG_DIR=config/devlinux -DPROP_FILE=cad_server_practice.properties -jar deploy/CADserver.jar &
 sleep 7
+python deploy/unifiedlogger.zip &
+
+sleep 2
 java -jar deploy/SimManager.jar practice_script_2016.xml &
 
-# Start Unified Logger Service
-python deploy/unifiedlogger.zip &
-sleep 5
 # Start a browser and run the web applications
 firefox localhost:8080/einotebook  localhost:8080/cptms localhost:8080/unifiedlogmonitor.html &
