Different ways to activate maintenance mode


At the moment (January 2021, Jahia releases and, the property maintenanceMode is not being handled by Jahia (cf https://jira.jahia.org/browse/QA-13569).

Consequently, how can we activate the maintenance mode?


There are 3 ways:

  1. Manually thanks to the tools: JAHIA_URL/modules/tools/maintenance.jsp
  2. Thanks to a curl command:
    curl -s -u 'USER:PASSWORD' -XGET "JAHIA_URL/modules/tools/maintenance.jsp?maintenance=true"
  3. Thanks to a SSH command through the Karaf console:
     ssh -p 8101 jahia@localhost -C "dx:maintenance on"