class hostingService_http_apache_ssl in Hosting 7.4
Same name and namespace in other branches
- 6.2 web_server/ssl/hosting_ssl.service.inc \hostingService_http_apache_ssl
- 7.3 web_server/ssl/hosting_ssl.service.inc \hostingService_http_apache_ssl
Hierarchy
- class \hostingService
- class \hostingService_http
- class \hostingService_http_public
- class \hostingService_http_ssl
- class \hostingService_http_public
- class \hostingService_http
Expanded class hierarchy of hostingService_http_apache_ssl
File
- web_server/
ssl/ hosting_ssl.service.inc, line 84 - Define Hosting service class for SSL.
View source
class hostingService_http_apache_ssl extends hostingService_http_ssl {
public $type = 'apache_ssl';
public $name = 'Apache SSL';
protected $has_restart_cmd = TRUE;
function default_restart_cmd() {
$command = '/usr/sbin/apachectl';
# a proper default for most of the world
foreach (explode(':', $_SERVER['PATH']) as $path) {
$options[] = "{$path}/apache2ctl";
$options[] = "{$path}/apachectl";
}
# try to detect the apache restart command
$options[] = '/usr/local/sbin/apachectl';
# freebsd
$options[] = '/usr/sbin/apache2ctl';
# debian + apache2
$options[] = $command;
foreach ($options as $test) {
if (is_executable($test)) {
$command = $test;
break;
}
}
return "sudo {$command} graceful";
}
}