38 lines
1.4 KiB
Desktop File
38 lines
1.4 KiB
Desktop File
# 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
|
|
|
|
[Unit]
|
|
Description=The Apache HTTP Server
|
|
After=network.target remote-fs.target nss-lookup.target
|
|
|
|
[Service]
|
|
Type=notify
|
|
Environment=LANG=C
|
|
|
|
ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
|
|
ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
|
|
ExecStop=/bin/kill -WINCH $MAINPID
|
|
# We want systemd to give httpd some time to finish gracefully, but still want
|
|
# it to kill httpd after TimeoutStopSec if something went wrong during the
|
|
# graceful stop. Normally, Systemd sends SIGTERM signal right after the
|
|
# ExecStop, which would kill httpd. We are sending useless SIGCONT here to give
|
|
# httpd time to finish.
|
|
KillSignal=SIGCONT
|
|
PrivateTmp=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|