Difference between revisions of "Maintenance mode"

From Wiki Landscapefor
Jump to: navigation, search
(Creata pagina con "The [https://atlas.landscapefor.eu/ AtlasFor] system has a nice '''maintenance mode'''. When enabling the maintenance mode you will see a cute splash screen that does not est...")
 
(intenral)
 
Line 1: Line 1:
 +
{{Documentazione interna}}
 
The [https://atlas.landscapefor.eu/ AtlasFor] system has a nice '''maintenance mode'''.
 
The [https://atlas.landscapefor.eu/ AtlasFor] system has a nice '''maintenance mode'''.
  

Latest revision as of 15:26, 16 September 2021

Questa pagina o sezione è una documentazione interna utile ai soli operatori interni AtlasFor

The AtlasFor system has a nice maintenance mode.

When enabling the maintenance mode you will see a cute splash screen that does not establish any database connection. So you can do any database maintenance or any operating system upgrade without breaking any MySQL or MariaDB transaction.

Enable maintenance mode

From the application

The maintenance mode can be enabled declaring this constant from the bottom of your load.php:

// enable AtlasFor maintenance mode
define( 'MAINTENANCE', true );

From the webserver

The maintenance mode is also enabled when the webserver declares the environment variable DATABASE_MAINTENANCE. Using Apache HTTPd this can be achieved declaring this in /etc/apache2/envvars (or any similar configuration file):

# enable AtlasFor maintenance mode
export DATABASE_MAINTENANCE=1

Then restart your webserver:

sudo systemctl restart apache2