Currently there are some code in install_cluster that
ensures only one instance of install_cluster is run at any given time. I'd
like to move this code from install_cluster to oscar_wizard so that this
functionality can be extended to prevent users from invoking multiple copies of
oscar_wizard (by cd'ing into scripts/ and running ./oscar_wizard or
./oscar_wizard manage).
The downside is that since
oscar_wizard is called by install_cluster as a system command, when oscar_wizard
reports that there is another instance running, it will tell the user to re-run
"oscar_wizard" instead of "install_cluster":
[this is within a install_cluster
call...]
--> Running: "./oscar_wizard"
There is an OSCAR Wizard lockfile that says a process
is still running with process id 7393. Checking if that is true ...
There is a process running with that process id.
If this is not an OSCAR Wizard process, remove
the following file and run ./oscar_wizard again:
/opt/oscar-5.0a1r5099M/.oscar_wizard_lockfile
Oscar Wizard failed to run successfully at ./install_cluster line 336.
--> Running: "./oscar_wizard"
There is an OSCAR Wizard lockfile that says a process
is still running with process id 7393. Checking if that is true ...
There is a process running with that process id.
If this is not an OSCAR Wizard process, remove
the following file and run ./oscar_wizard again:
/opt/oscar-5.0a1r5099M/.oscar_wizard_lockfile
Oscar Wizard failed to run successfully at ./install_cluster line 336.
But I would assume the user is smart
enough to figure out that he/she should be re-running install_cluster since
that's the command he/she used initially.
Not sure if this will break the CLI
though.
Comments?
Thanks,
Bernard
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Oscar-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oscar-devel
