Hi Byron,
This option was added for SailFin requirement (SailFin issue
947)
As you are aware, Ericsson setup used scripts to setup their clusters
and start the instances. The requirement was to initialize certain env
vars within the instance environment to be used by AMF (availability
management framework) module.
-Yamini
Byron Nevins wrote:
setenv
adds the given properties to the environment of the instance.
I.e every process normally starts with the environment of its parent.
V2 would add the given properties to the environment of the instance.
We don't need this in V3, AFAIK.
=================
excerpt from ASLauncher (module: admin) in V2
String[] cmd=command.getCommandAsArray();
//getLogger().log(Level.INFO, "\n" + Arrays.toString(cmd));
ProcessBuilder pb = new ProcessBuilder(cmd);
// set the environment if any
if (env != null)
setEnv(pb.environment(), env);
The setEnv call takes the given properties (env) and stuffs them, one
by one, into the Process' environment. When pb.start() is called later
the instance will see those props
as environmental variables.