Maintenance mode

Da Wiki Landscapefor.
Versione del 16 set 2021 alle 15:03 di System.bot (discussione | contributi) (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...")
(diff) ← Versione meno recente | Versione attuale (diff) | Versione più recente → (diff)
Vai alla navigazione Vai alla ricerca

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