2017-06-05 15:55:45 +00:00
|
|
|
# See httpd.service(8) for more information on using the httpd service.
|
2017-05-19 10:04:53 +00:00
|
|
|
|
2017-04-18 07:59:42 +00:00
|
|
|
# Modifying this file in-place is not recommended, because changes
|
|
|
|
# will be overwritten during package upgrades. If you want to
|
|
|
|
# customize the behaviour, the best way is to use "systemctl edit"
|
2017-07-14 11:55:47 +00:00
|
|
|
# to create an override unit.
|
2016-07-07 12:22:30 +00:00
|
|
|
|
2017-04-18 07:59:42 +00:00
|
|
|
# For example, to pass additional options (such as -D definitions) to
|
|
|
|
# the httpd binary at startup, create an override unit (as is done by
|
|
|
|
# systemctl edit) and enter the following:
|
2013-05-24 08:24:09 +00:00
|
|
|
|
|
|
|
# [Service]
|
|
|
|
# Environment=OPTIONS=-DMY_DEFINE
|
|
|
|
|
2011-04-12 14:39:15 +00:00
|
|
|
[Unit]
|
2012-03-13 09:55:18 +00:00
|
|
|
Description=The Apache HTTP Server
|
2012-06-08 11:52:12 +00:00
|
|
|
After=network.target remote-fs.target nss-lookup.target
|
2017-06-05 15:55:45 +00:00
|
|
|
Documentation=man:httpd.service(8)
|
2011-04-12 14:39:15 +00:00
|
|
|
|
|
|
|
[Service]
|
2012-09-07 09:35:51 +00:00
|
|
|
Type=notify
|
2013-05-24 08:24:09 +00:00
|
|
|
Environment=LANG=C
|
|
|
|
|
2012-09-07 09:35:51 +00:00
|
|
|
ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
|
2012-04-20 11:38:40 +00:00
|
|
|
ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
|
2014-09-01 07:32:54 +00:00
|
|
|
# Send SIGWINCH for graceful stop
|
|
|
|
KillSignal=SIGWINCH
|
|
|
|
KillMode=mixed
|
2012-01-17 13:17:38 +00:00
|
|
|
PrivateTmp=true
|
2011-04-12 14:39:15 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|