summaryrefslogtreecommitdiffstats
path: root/httpd.service
diff options
context:
space:
mode:
authorJan Kaluza <hanzz.k@gmail.com>2013-05-24 10:24:09 +0200
committerJan Kaluza <hanzz.k@gmail.com>2013-05-24 10:24:09 +0200
commit0b19f7b6e1a47c6167a8ab43b4a9d1e759b54721 (patch)
treebffa3af0ceb1cc0a05429516d84b13686d972a10 /httpd.service
parent46396bf73422b1acf5c24510f2cda39c6ceb2bff (diff)
downloadhttpd-0b19f7b6e1a47c6167a8ab43b4a9d1e759b54721.tar.gz
httpd-0b19f7b6e1a47c6167a8ab43b4a9d1e759b54721.tar.xz
httpd-0b19f7b6e1a47c6167a8ab43b4a9d1e759b54721.zip
ignore /etc/sysconfig/httpd and document systemd way of setting env variables in this file
Diffstat (limited to 'httpd.service')
-rw-r--r--httpd.service19
1 files changed, 18 insertions, 1 deletions
diff --git a/httpd.service b/httpd.service
index 307666c..52502b8 100644
--- a/httpd.service
+++ b/httpd.service
@@ -1,10 +1,27 @@
+# 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
-EnvironmentFile=/etc/sysconfig/httpd
+Environment=LANG=C
+
ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop