2013-05-24 08:24:09 +00:00
|
|
|
# It's not recommended to modify this file in-place, because it will be
|
|
|
|
# overwritten during package upgrades. If you want to customize, the best
|
|
|
|
# way is to create a file "/etc/systemd/system/httpd.service",
|
|
|
|
# containing
|
|
|
|
# .include /lib/systemd/system/httpd.service
|
|
|
|
# ...make your changes here...
|
|
|
|
# For more info about custom unit files, see
|
|
|
|
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
|
|
|
|
|
|
|
|
# For example, to pass additional options (for instance, -D definitions) to the
|
|
|
|
# httpd binary at startup, you need to create a file named
|
|
|
|
# "/etc/systemd/system/httpd.service" containing:
|
|
|
|
# .include /lib/systemd/system/httpd.service
|
|
|
|
# [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
|