Skip to:
I am getting the below messages nearly everytime I try and stop opennms on my Mac
uzbekistan:bin brozow$ sudo ./opennms -Q stopPassword:Stopping OpenNMS: error invoking stop operationstopped
Exiting with the correct code now.
Ah, yeah, 0 is the exit status for correct exit.
I mean, it should be System.exit(0) if everything went well:
http://stackoverflow.com/questions/2434592/difference-in-system-exit0-system-exit-1-system-exit1-in-java
That does the trick ... No more exception, but:
It is going to be a problem on RHEL/CentOS 7 or any other system that works with Systemd.
Delayed the System.exit(1) by 500 milliseconds so that the Controller class would receive the data instead of throwing a SocketException.
I am getting the below messages nearly everytime I try and stop opennms on my Mac
uzbekistan:bin brozow$ sudo ./opennms -Q stop
Password:
Stopping OpenNMS: error invoking stop operation
stopped