Werk #16400: omd restart: Exit Code is 2 on Failure

Component Site management
Title omd restart: Exit Code is 2 on Failure
Date Jan 26, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p21 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p39 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

omd restart executes omd start and omd stop, both of which can terminate with exit code zero or two. Previously, the exit code of these commands would be ignored. omd restart now reports the worst exit code reported by the two commands.

To the list of all Werks