-
Change Request
-
Resolution: Unresolved
-
Trivial
-
None
-
2.2.1
-
This would affect all operating systems
Currently when using startup.sh and shutdown.sh for the Java Gateway, there is no way to programmatically distinguish between the different error scenarios. This makes it difficult to write wrapper scripts around the current scripts, such as an init.d scripts.
If instead of always returning 1 on error, we could return anything not zero, with each different cause having their own exit code, it would make it very easy to write scripts that can start and stop the java gateway without having to do matches on string output. Sample patch is attached.