./apmccsrv.sh start, it starts up
./apmccsrv.sh install, it installs but
./apmccsrv.sh start fails
If I run
./apmccsrv.sh start and then it works
When installing configserver as a service using 'apmccsrv install' it needs a path to the Java binary set as absolute path in config/apmccsrv.properties.
To have this, uncomment the line in "apmccsrv.sh" starting with 'set.JAVA_HOME' and set it to absolute path to JRE directory.
Alternatively, you can set path to Java binary directly using wrapper.java.command variable in the same file.
Using any variables from environment will probably not work as very little is available in environment when running as a service.
When running with 'apmccsrv start' it works because it uses current shell to run the configuration server and this shell probably has JAVA_HOME variable set correctly.