Skip to content

Commit e287921

Browse files
author
Till Brehm
committed
Merge branch 'master' into 'master'
add suport for Red Hat Software Collections and named-chroot These patches will add suport for newer Apache webserver from Red Hat Software collections as well as support for running bind in chroot environments. See merge request !509
2 parents 1b8a3ec + c0e7328 commit e287921

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

server/mods-available/dns_module.inc.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ function restartBind($action = 'restart') {
126126
$daemon = '';
127127
if(is_file($conf['init_scripts'] . '/' . 'bind9')) {
128128
$daemon = 'bind9';
129+
}elseif(is_file($conf['init_scripts'] . '/' . 'named-chroot')) {
130+
$daemon = 'named-chroot';
131+
}elseif(is_file('/usr/lib/systemd/system/named-chroot.service')) {
132+
$daemon = 'named-chroot';
129133
} else {
130134
$daemon = 'named';
131135
}

server/mods-available/web_module.inc.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ function restartHttpd($action = 'restart') {
203203
$daemon = $web_config['server_type'];
204204
break;
205205
default:
206-
if(is_file($conf['init_scripts'] . '/' . 'httpd') || is_dir('/etc/httpd')) {
206+
if(is_file($conf['init_scripts'] . '/' . 'httpd24-httpd') || is_dir('/opt/rh/httpd24/root/etc/httpd') {
207+
$daemon = 'httpd24-httpd';
208+
} elseif(is_file($conf['init_scripts'] . '/' . 'httpd') || is_dir('/etc/httpd')) {
207209
$daemon = 'httpd';
208210
} else {
209211
$daemon = 'apache2';

0 commit comments

Comments
 (0)