|
|
5860daa |
# This is a template for httpd instances.
|
|
|
5860daa |
# See httpd@.service(8) for more information.
|
|
|
5860daa |
|
|
|
5860daa |
[Unit]
|
|
|
5860daa |
Description=The Apache HTTP Server
|
|
|
5860daa |
After=network.target remote-fs.target nss-lookup.target
|
|
|
5860daa |
Documentation=man:httpd@.service(8)
|
|
|
5860daa |
|
|
|
5860daa |
[Service]
|
|
|
5860daa |
Type=notify
|
|
|
5860daa |
Environment=LANG=C
|
|
|
5860daa |
Environment=HTTPD_INSTANCE=%i
|
|
|
5860daa |
ExecStartPre=/bin/mkdir -m 710 -p /run/httpd/instance-%i
|
|
|
5860daa |
ExecStartPre=/bin/chown root.apache /run/httpd/instance-%i
|
|
|
b18b77b |
ExecStartPre=/bin/mkdir -m 700 -p /var/lib/httpd/instance-%i
|
|
|
b18b77b |
ExecStartPre=/bin/chown apache.apache /var/lib/httpd/instance-%i
|
|
|
5860daa |
ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND -f conf/%i.conf
|
|
|
5860daa |
ExecReload=/usr/sbin/httpd $OPTIONS -k graceful -f conf/%i.conf
|
|
|
5860daa |
# Send SIGWINCH for graceful stop
|
|
|
5860daa |
KillSignal=SIGWINCH
|
|
|
5860daa |
KillMode=mixed
|
|
|
5860daa |
PrivateTmp=true
|
|
|
5860daa |
|
|
|
5860daa |
[Install]
|
|
|
5860daa |
WantedBy=multi-user.target
|