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
* 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
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
* 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