Skip to content

Expose hard and soft main mode #251 - #252

Merged
brendanheywood merged 1 commit into
MOODLE_39_STABLEfrom
maint-mode
Jun 15, 2026
Merged

Expose hard and soft main mode #251#252
brendanheywood merged 1 commit into
MOODLE_39_STABLEfrom
maint-mode

Conversation

@brendanheywood

@brendanheywood brendanheywood commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Closes #251

Right now if maint mode is on you get this meaningless summary:

<!DOCTYPE html>

This just gives nicer icinga compatible summary text. to test:

root@35538c8d0020:/var/www/main# php admin/cli/maintenance.php --enable
== Maintenance mode (https://main.localhost) ==
Your site is currently in Command Line Interface (CLI) maintenance mode. No web access is allowed.
root@35538c8d0020:/var/www/main# php admin/cli/maintenance.php --disable
== Maintenance mode (https://main.localhost) ==
Maintenance mode has been disabled and the site is running normally again
root@35538c8d0020:/var/www/main# php admin/cli/maintenance.php --enableold
== Maintenance mode (https://main.localhost) ==
Your site is currently in maintenance mode (only admins can log in or use the site).

while reloading https://main.localhost/admin/tool/heartbeat/croncheck.php

@brendanheywood
brendanheywood merged commit 2b0fd0d into MOODLE_39_STABLE Jun 15, 2026
35 checks passed
@brendanheywood
brendanheywood deleted the maint-mode branch June 15, 2026 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose maintenance mode better

1 participant