|
|
fce414a |
# See httpd.service(8) for more information on using the httpd service.
|
|
|
710b63c |
|
|
|
55508e1 |
# Modifying this file in-place is not recommended, because changes
|
|
|
3150aa9 |
# will be overwritten during package upgrades. To customize the
|
|
|
3150aa9 |
# behaviour, run "systemctl edit httpd" to create an override unit.
|
|
|
a67a8d7 |
|
|
|
55508e1 |
# For example, to pass additional options (such as -D definitions) to
|
|
|
55508e1 |
# the httpd binary at startup, create an override unit (as is done by
|
|
|
55508e1 |
# systemctl edit) and enter the following:
|
|
Jan Kaluza |
0b19f7b |
|
|
Jan Kaluza |
0b19f7b |
# [Service]
|
|
Jan Kaluza |
0b19f7b |
# Environment=OPTIONS=-DMY_DEFINE
|
|
Jan Kaluza |
0b19f7b |
|
|
|
bd3365e |
[Unit]
|
|
|
3a44ff7 |
Description=The Apache HTTP Server
|
|
|
f0c4143 |
Wants=httpd-init.service
|
|
|
f0c4143 |
After=network.target remote-fs.target nss-lookup.target httpd-init.service
|
|
|
fce414a |
Documentation=man:httpd.service(8)
|
|
|
bd3365e |
|
|
|
bd3365e |
[Service]
|
|
Jan Kaluza |
a0a00e7 |
Type=notify
|
|
Jan Kaluza |
0b19f7b |
Environment=LANG=C
|
|
Jan Kaluza |
0b19f7b |
|
|
Jan Kaluza |
a0a00e7 |
ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
|
|
|
ea6aac8 |
ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
|
|
|
3693038 |
# Send SIGWINCH for graceful stop
|
|
|
3693038 |
KillSignal=SIGWINCH
|
|
|
3693038 |
KillMode=mixed
|
|
|
ce009f9 |
PrivateTmp=true
|
|
|
bd3365e |
|
|
|
bd3365e |
[Install]
|
|
|
bd3365e |
WantedBy=multi-user.target
|