2017-06-05 15:55:45 +00:00
|
|
|
# See httpd.service(8) for more information on using the httpd service.
|
2017-05-19 10:04:53 +00:00
|
|
|
|
2017-04-18 07:59:42 +00:00
|
|
|
# Modifying this file in-place is not recommended, because changes
|
2017-07-14 11:57:27 +00:00
|
|
|
# will be overwritten during package upgrades. To customize the
|
|
|
|
# behaviour, run "systemctl edit httpd" to create an override unit.
|
2016-07-07 12:22:30 +00:00
|
|
|
|
2017-04-18 07:59:42 +00:00
|
|
|
# For example, to pass additional options (such as -D definitions) to
|
|
|
|
# the httpd binary at startup, create an override unit (as is done by
|
|
|
|
# systemctl edit) and enter the following:
|
2013-05-24 08:24:09 +00:00
|
|
|
|
|
|
|
# [Service]
|
|
|
|
# Environment=OPTIONS=-DMY_DEFINE
|
|
|
|
|
2011-04-12 14:39:15 +00:00
|
|
|
[Unit]
|
2012-03-13 09:55:18 +00:00
|
|
|
Description=The Apache HTTP Server
|
2017-09-20 18:18:24 +00:00
|
|
|
Wants=httpd-init.service
|
|
|
|
After=network.target remote-fs.target nss-lookup.target httpd-init.service
|
2017-06-05 15:55:45 +00:00
|
|
|
Documentation=man:httpd.service(8)
|
2011-04-12 14:39:15 +00:00
|
|
|
|
|
|
|
[Service]
|
2012-09-07 09:35:51 +00:00
|
|
|
Type=notify
|
2013-05-24 08:24:09 +00:00
|
|
|
Environment=LANG=C
|
|
|
|
|
2012-09-07 09:35:51 +00:00
|
|
|
ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
|
2012-04-20 11:38:40 +00:00
|
|
|
ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
|
2014-09-01 07:32:54 +00:00
|
|
|
# Send SIGWINCH for graceful stop
|
|
|
|
KillSignal=SIGWINCH
|
|
|
|
KillMode=mixed
|
2024-03-07 13:04:06 +00:00
|
|
|
DevicePolicy=closed
|
|
|
|
KeyringMode=private
|
|
|
|
LockPersonality=yes
|
|
|
|
MemoryDenyWriteExecute=yes
|
2021-04-09 08:40:47 +00:00
|
|
|
OOMPolicy=continue
|
2024-03-07 13:04:06 +00:00
|
|
|
PrivateDevices=yes
|
|
|
|
PrivateTmp=true
|
|
|
|
ProtectClock=yes
|
|
|
|
ProtectControlGroups=yes
|
|
|
|
ProtectHome=read-only
|
|
|
|
ProtectHostname=yes
|
|
|
|
ProtectKernelLogs=yes
|
|
|
|
ProtectKernelModules=yes
|
|
|
|
ProtectKernelTunables=yes
|
|
|
|
ProtectSystem=yes
|
|
|
|
RestrictNamespaces=yes
|
|
|
|
RestrictRealtime=yes
|
|
|
|
RestrictSUIDSGID=yes
|
|
|
|
SystemCallArchitectures=native
|
2011-04-12 14:39:15 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|