Movatterモバイル変換


[0]ホーム

URL:


Modules |Directives |FAQ |Glossary |Sitemap

Apache HTTP Server Version 2.4

<-
Apache >HTTP Server >Documentation >Version 2.4 >Modules

Apache Module mod_systemd

Available Languages: en  | fr 

Description:Provides better support for systemd integration
Status:Extension
Module Identifier:systemd_module
Source File:mod_systemd.c
Compatibility:Available in Apache 2.4.42 and later

Summary

This module provides support for systemd integration. It allows httpd to be used in a service with the systemdType=notify (seesystemd.service(5) for more information). The module is activated if loaded.

Example of systemd service unit (more settings are probably needed for production systems)

[Unit]Description=The Apache HTTP ServerAfter=network.target[Service]Type=notifyExecStart=/usr/local/apache2/bin/httpd -D FOREGROUND -k startExecReload=/usr/local/apache2/bin/httpd -k gracefulKillMode=mixed[Install]WantedBy=multi-user.target

Special attention should be given to howExecStop and/orKillMode are configured for the service. If configured, anExecStop command should be asynchronous operation which itself exits when the daemon has terminated. Runninghttpd -k stopasynchronously initiates daemon termination, so does not satisfy this condition. The example above usesKillMode=mixed so that systemd sendsSIGTERM to signal the parent process (and only the parent) to shut down. The entire process group is then sentSIGKILL afterTimeoutStopSec elapses, if any processes are still running. Seesystemd.kill(5) for more information.

This module does not provide support for Systemd socket activation.

ExtendedStatus is enabled by default if the module is loaded. IfExtendedStatus is not disabled in the configuration, run-time load and request statistics are made available in thesystemctl status output.

Support Apache!

Directives

This module provides no directives.

Bugfix checklist

See also

Available Languages: en  | fr 

top

Comments

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Libera.chat, or sent to ourmailing lists.

Copyright 2025 The Apache Software Foundation.
Licensed under theApache License, Version 2.0.

Modules |Directives |FAQ |Glossary |Sitemap


[8]ページ先頭

©2009-2025 Movatter.jp