/** * Enable and start the MariaDB service * @return void */ function enable() { // Return if MariaDB is not enabled if (Config::read('mariadb') !== 'enabled') { Log::warning('Feature is not enabled: mariadb'); return; } Log::debug('Enabling feature: mariadb'); // SystemD controller - enable mariadb exec('/usr/bin/systemctl -q enable mariadb 2>/dev/null'); // SystemD controller - run mariadb (use restart in case mariadb is already running) exec('/usr/bin/systemctl -q restart mariadb 2>/dev/null'); Log::debug('Enabling feature: roundcube (dependency)'); // Enable Roundcube which depends on MariaDB & Dovecot $feature = new Roundcube(); $feature->enable(); }