2016-07-07 12:22:30 +00:00
|
|
|
# It is not recommended to modify this file in-place, because it will be
|
2013-05-24 08:24:09 +00:00
|
|
|
# overwritten during package upgrades. If you want to customize, the best
|
2016-07-07 12:22:30 +00:00
|
|
|
# way is to use the "systemctl edit" command to create an override unit.
|
|
|
|
|
|
|
|
# For example, to pass additional options (for instance, -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
|
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
|