(self, cmd)
| 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") |
no test coverage detected