Methods

OpenShift::Runtime::Frontend::Http::Plugins

Public Class Methods

reload_httpd(async=false) click to toggle source

Reload the Apache configuration

# File lib/openshift/runtime/frontend/http/plugins/apachedb.rb, line 39
def self.reload_httpd(async=false)
  async_opt="-b" if async
  begin
    ::OpenShift::Runtime::Utils::oo_spawn("/usr/sbin/oo-httpd-singular #{async_opt} graceful", :expected_exitstatus=> 0)
  rescue ::OpenShift::Runtime::Utils::ShellExecutionException => e
    NodeLogger.logger.error("ERROR: failure from oo-httpd-singular(#{e.rc}): #{@container_uuid}: stdout: #{e.stdout} stderr:#{e.stderr}")
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.