MCPcopy Create free account
hub / github.com/apache/httpd / _run_apachectl

Method _run_apachectl

test/pyhttpd/env.py:664–674  ·  view source on GitHub ↗
(self, cmd)

Source from the content-addressed store, hash-verified

662 return False
663
664 def _run_apachectl(self, cmd) -> ExecResult:
665 conf_file = 'stop.conf' if cmd == 'stop' else 'httpd.conf'
666 args = [self._apachectl,
667 "-d", self.server_dir,
668 "-f", os.path.join(self._server_dir, f'conf/{conf_file}'),
669 "-k", cmd]
670 r = self.run(args)
671 self._apachectl_stderr = r.stderr
672 if r.exit_code != 0:
673 log.warning(f"failed: {r}")
674 return r
675
676 def apache_reload(self):
677 r = self._run_apachectl("graceful")

Callers 5

apache_reloadMethod · 0.95
apache_restartMethod · 0.95
apache_stopMethod · 0.95
apache_graceful_stopMethod · 0.95
apache_failMethod · 0.95

Calls 2

runMethod · 0.95
joinMethod · 0.80

Tested by

no test coverage detected