summaryrefslogtreecommitdiffstats
path: root/httpd.service
diff options
context:
space:
mode:
authorJoe Orton <jorton@redhat.com>2011-04-12 15:39:15 +0100
committerJoe Orton <jorton@redhat.com>2011-04-12 15:39:15 +0100
commitbd3365ed3ec3f117b8c344903c39e55df14aee48 (patch)
treea70cdb860c6fc4c9c37cf8f77b6bc54c35538dd0 /httpd.service
parente2ddae2555699b836d205e34aa13d5f72c3d40f4 (diff)
downloadhttpd-bd3365ed3ec3f117b8c344903c39e55df14aee48.tar.gz
httpd-bd3365ed3ec3f117b8c344903c39e55df14aee48.tar.xz
httpd-bd3365ed3ec3f117b8c344903c39e55df14aee48.zip
add systemd service files (#684175, thanks to Jóhann B. Guðmundsson)
Diffstat (limited to 'httpd.service')
-rw-r--r--httpd.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/httpd.service b/httpd.service
new file mode 100644
index 0000000..35e662c
--- /dev/null
+++ b/httpd.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=The Apache HTTP Server (@NAME@ MPM)
+After=syslog.target network.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/httpd/httpd.pid
+EnvironmentFile=/etc/sysconfig/httpd
+ExecStart=@EXEC@ $OPTIONS -k start
+ExecReload=@EXEC@ $OPTIONS -t
+ExecReload=/bin/kill -HUP $MAINPID
+ExecStop=@EXEC@ $OPTIONS -k stop
+
+[Install]
+WantedBy=multi-user.target