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