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