1
0
mirror of https://github.com/apache/httpd.git synced 2026-10-23 22:49:01 +03:00

10 Commits

Author SHA1 Message Date
Jean-Frederic Clere
502faf44d5 Add --strict-optional to prevent success when missing modules.
Submitted by Maya Echtinaw

This closes #808



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1939059 13f79535-47bb-0310-9956-ffa450edef68
2026-10-12 13:14:38 +00:00
Joe Orton
be7efad1eb * test/modules/arch/linux/test_007_notify_reload.py: New test suite for
Type=notify-reload.

* test/modules/arch/linux/env.py (TransientService): Take the service
  type and whether to configure ExecReload=.
  (TransientService.systemctl): Take a timeout.
  (TransientService.reload, TransientService.rewrite_conf,
  error_log_size, error_log_since, systemd_version): New.

* test/modules/arch/linux/README: Describe the new suite.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
GitHub: PR #729


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1937647 13f79535-47bb-0310-9956-ffa450edef68
2026-08-30 10:05:36 +00:00
Joe Orton
06c0a97f62 mod_systemd: Implement watchdog support:
* modules/arch/unix/mod_systemd.c (watchdog_ping): New.
  (systemd_pre_config, systemd_post_config, systemd_monitor): Send the
  watchdog keep-alive, and warn (AH10621) if WatchdogSec is too short
  to be met.

* docs/manual/mod/mod_systemd.xml: Document watchdog support.

* test/modules/arch/linux/test_006_watchdog.py: New test suite.

* test/modules/arch/linux/env.py (ForegroundServer): New, running httpd
  in the foreground so $WATCHDOG_PID can name it.
  (TransientService): Take extra unit properties.

* test/modules/arch/linux/test_001_notify.py
  (test_systemd_001_09_watchdog): No longer xfail; use a WatchdogSec
  which does not draw AH10621.

* test/modules/arch/linux/README: Describe the watchdog tests.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
GitHub: closes #728


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1937644 13f79535-47bb-0310-9956-ffa450edef68
2026-08-30 08:57:27 +00:00
Joe Orton
31d91bb768 * test/pyhttpd/env.py (HttpdTestEnv.apache_hard_restart, read_pid_file):
Moved here from the mod_systemd tests, for use by other suites. [skip ci]

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
GitHub: PR #727


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1937635 13f79535-47bb-0310-9956-ffa450edef68
2026-08-30 06:09:01 +00:00
Joe Orton
4fe1b8aafb * test/modules/arch/: Add missing __init__.py
files lost in translation from the PR.

Fixes: 4abdd206a7 (r1937596)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1937602 13f79535-47bb-0310-9956-ffa450edef68
2026-08-29 09:19:37 +00:00
Joe Orton
75d0e8c0c0 * modules/arch/unix/mod_systemd.c (systemd_stopping,
systemd_post_config): Notify STOPPING=1 on shutdown.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
GitHub: PR #723


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1937600 13f79535-47bb-0310-9956-ffa450edef68
2026-08-29 09:12:09 +00:00
Joe Orton
651b6a9a7a * modules/arch/unix/mod_systemd.c (monotonic_usec, systemd_pre_config):
Send MONOTONIC_USEC with RELOADING=1.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
GitHub: PR #723


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1937599 13f79535-47bb-0310-9956-ffa450edef68
2026-08-29 09:11:39 +00:00
Joe Orton
3e26a67571 * modules/arch/unix/mod_systemd.c (ap_systemd_listen_fds,
ap_find_systemd_socket): Remember the number of sockets passed, so a
  graceful restart of a socket-activated server works.  Drop the
  unchecked getenv("LISTEN_FDS").

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
GitHub: PR #723


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1937598 13f79535-47bb-0310-9956-ffa450edef68
2026-08-29 09:11:29 +00:00
Joe Orton
f9ebab5e54 * modules/arch/unix/mod_systemd.c (systemd_monitor): Avoid dividing by a
zero uptime, and report the idle and busy figures as percentages.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
GitHub: PR #723


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1937597 13f79535-47bb-0310-9956-ffa450edef68
2026-08-29 09:11:16 +00:00
Joe Orton
4abdd206a7 * test/modules/arch/linux/: New test suite.
* test/pyhttpd/env.py (HttpdTestEnv.set_httpd_env, _clean_path_env):
  Allow a suite to add variables to the environment httpd is started
  with.

* test/pyhttpd/conf/stop.conf.template: Set DefaultRuntimeDir and
  PidFile to match httpd.conf, so that "apachectl -k stop" finds the
  running server.

* .github/workflows/linux.yml: Enable systemd testing in the reduced
  exports job, building mod_systemd shared since one test has to omit
  it from the configuration.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
GitHub: PR #723


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1937596 13f79535-47bb-0310-9956-ffa450edef68
2026-08-29 09:11:02 +00:00