The current version of the launcher starts the ESB, provides a basic command line interface (console mode), and also tries to solve some OS specific issues (e.g. the lock file).
In the next release, the CLI component will be separated from the server and OS integration issues should be solved through platform specific packaging, and as a result the launcher will be super simplified.
I'm currently working on these three features, and the new launcher returns the exit code 1 when the startup sequence failed to complete.
A new handler in the PetalsStateListener class would be sufficient to notify the launcher of problems while starting and exit with the appropriate value.
I think we should review my code next week and commit as soon as possible.
I don't understand, the java process do not return any code until its termination.
Do you mean that the script itself must detect if there is error during recovering and return a code accordingly?
Is it for the petals exploitation tools?