server icon indicating copy to clipboard operation
server copied to clipboard

Implement occ status command via return codes v2 (Fixes: #35704)

Open leegarrett opened this issue 2 years ago • 0 comments

Signed-off-by: Lee Garrett [email protected]

  • Resolves: #35704

Summary

This is an improved version of my earlier PR #35830. This is now a parameter to status, so it allows for adding more return codes later, which can then for example be consumed in systemd units, or monitoring checks.

It adds a parameter that can be used in scripts. ./occ status -e returns 0 when operating normally, and 1 if there is maintenance mode, 2 if ./occ upgrade is required.

TODO

  • [ ] Test coverage?

Checklist

leegarrett avatar Dec 22 '22 23:12 leegarrett