-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Labels
Description
How to use GitHub
- Please use the 👍 reaction to show that you are interested into the same feature.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
I propose the --check-if-disabled flag to occ maintenance:mode. It doesn't write any output, it just returns 0 if maintenance mode is off, and 1 if it's on.
This allows to programmatically check for maintenance mode, which makes automation easier. It allows us to use it as an conditional for the cron job (e.g. ExecCondition in the systemd unit), so the cron job will be skipped when maintenance mode is running. Currently it generates an admin email every 5 minutes during maintenance mode.
Reactions are currently unavailable