You are here

class hostingService_http_apache_ssl in Hostmaster (Aegir) 6

Hierarchy

Expanded class hierarchy of hostingService_http_apache_ssl

File

modules/hosting/web_server/ssl/hosting_ssl.service.inc, line 69

View source
class hostingService_http_apache_ssl extends hostingService_http_ssl {
  public $type = '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";
  }

}

Members

Namesort descending Modifiers Type Description Overrides
hostingService::$server public property
hostingService::has_port public function 3
hostingService::mergeData protected function
hostingService::save public function
hostingService::setValues public function
hostingService::__construct function
hostingService_http::$service public property
hostingService_http::$ssl_enabled public property
hostingService_http_apache_ssl::$has_restart_cmd protected property Overrides hostingService::$has_restart_cmd
hostingService_http_apache_ssl::$type public property
hostingService_http_apache_ssl::default_restart_cmd function Overrides hostingService::default_restart_cmd
hostingService_http_public::$has_port protected property Overrides hostingService::$has_port
hostingService_http_public::default_port function Overrides hostingService::default_port
hostingService_http_public::update function Overrides hostingService::update
hostingService_http_ssl::context_import public function Overrides hostingService::context_import
hostingService_http_ssl::context_options public function Overrides hostingService_http_public::context_options
hostingService_http_ssl::delete function Overrides hostingService::delete
hostingService_http_ssl::delete_revision function Overrides hostingService::delete_revision
hostingService_http_ssl::form function Overrides hostingService::form
hostingService_http_ssl::insert function Overrides hostingService::insert
hostingService_http_ssl::load function Overrides hostingService::load
hostingService_http_ssl::validate public function Overrides hostingService::validate
hostingService_http_ssl::view function Overrides hostingService::view