Add script read from command map if sys prop is empty
@@ -91,7 +91,11 @@ public class CarbonServerManager {
File commandDir = new File(carbonHome);
log.info("Starting server ... ");
+ if (StringUtils.isNotEmpty(System.getProperty("startupScript"))) {
scriptName = System.getProperty("startupScript");
+ } else {
+ scriptName = commandMap.get("startupScript");
+ }
String componentBinPath = commandMap.get("runtimePath");
if (scriptName == null && componentBinPath == null) {
