forked from extern/egroupware
use "systemctl enable <service>" for RHEL 7
This commit is contained in:
parent
6a9558e2a7
commit
2ef9783ff4
@ -148,9 +148,10 @@ function set_distro_defaults($distro=null)
|
|||||||
// some MySQL packages (mysql.com, MariaDB, ...) use "mysql" as service name instead of RH default "mysqld"
|
// some MySQL packages (mysql.com, MariaDB, ...) use "mysql" as service name instead of RH default "mysqld"
|
||||||
if (file_exists('/usr/bin/systemctl')) // RHEL 7
|
if (file_exists('/usr/bin/systemctl')) // RHEL 7
|
||||||
{
|
{
|
||||||
$config['autostart_db'] = $config['autostart_webserver'] = '';
|
|
||||||
$config['start_db'] = '/usr/bin/systemctl %s mariadb';
|
$config['start_db'] = '/usr/bin/systemctl %s mariadb';
|
||||||
|
$config['autostart_db'] = build_cmd('start_db', 'enable');
|
||||||
$config['start_webserver'] = '/usr/bin/systemctl %s httpd';
|
$config['start_webserver'] = '/usr/bin/systemctl %s httpd';
|
||||||
|
$config['autostart_webserver'] = build_cmd('start_webserver', 'enable');
|
||||||
}
|
}
|
||||||
elseif (!file_exists('/etc/init.d/mysqld') && file_exists('/etc/init.d/mysql'))
|
elseif (!file_exists('/etc/init.d/mysqld') && file_exists('/etc/init.d/mysql'))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user