2018-04-19 16:18:11 +00:00
|
|
|
# This is a template for httpd instances.
|
|
|
|
# See httpd@.service(8) for more information.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=The Apache HTTP Server
|
|
|
|
After=network.target remote-fs.target nss-lookup.target
|
|
|
|
Documentation=man:httpd@.service(8)
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=notify
|
|
|
|
Environment=LANG=C
|
|
|
|
Environment=HTTPD_INSTANCE=%i
|
|
|
|
ExecStartPre=/bin/mkdir -m 710 -p /run/httpd/instance-%i
|
|
|
|
ExecStartPre=/bin/chown root.apache /run/httpd/instance-%i
|
2019-06-21 08:00:52 +00:00
|
|
|
ExecStartPre=/bin/mkdir -m 700 -p /var/lib/httpd/instance-%i
|
|
|
|
ExecStartPre=/bin/chown apache.apache /var/lib/httpd/instance-%i
|
2018-04-19 16:18:11 +00:00
|
|
|
ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND -f conf/%i.conf
|
|
|
|
ExecReload=/usr/sbin/httpd $OPTIONS -k graceful -f conf/%i.conf
|
|
|
|
# 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
|
2018-04-19 16:18:11 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|