-
Type: Bug
-
Status: Resolved
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: 7.4
-
Component/s: nuxeoctl start/stop/admin
nuxeoctl --strict startbg
does not work.
Whereas
nuxeoctl --strict start
does.
This is an issue since failed component start will not shutdown the server when run as a service (using the startbg option instead of start).
This is also confirmed in the NuxeoLauncher class:
https://github.com/nuxeo/nuxeo/blob/master/nuxeo-distribution/nuxeo-launcher/src/main/java/org/nuxeo/launcher/NuxeoLauncher.java
where the strict option is taken into account here (in the waitForEffectiveStart method):
if (strict) { errorValue = EXIT_CODE_ERROR; log.error("Shutting down because of unstarted component in strict mode..."); stop(); return false; }
https://github.com/nuxeo/nuxeo/blob/master/nuxeo-distribution/nuxeo-launcher/src/main/java/org/nuxeo/launcher/NuxeoLauncher.java#L1990
But not in the doStart one.