Hi,

I am trying to run a script like this on multiple EC2 servers:

for (NodeMetadata node : nodes) {
String runScript = new ScriptBuilder()
.addStatement(exec("sh run.sh"))
.render(org.jclouds.scriptbuilder.domain.OsFamily.UNIX);

ListenableFuture<ExecResponse> responses =
context.getComputeService().submitScriptOnNode(node.getId(),
runScript,
wrapInInitScript(false).runAsRoot(false).nameTask("Test"));

}

The script does not start. The script starts a server and exits, something
like java -jar somejar.jar

How can it get to work?

Thanks,
Nishant

Reply via email to