summaryrefslogtreecommitdiff
path: root/debian/apache2.service
diff options
context:
space:
mode:
authorRaphaël Hertzog <hertzog@debian.org>2016-09-20 15:39:15 +0200
committerRaphaël Hertzog <hertzog@debian.org>2016-09-20 17:37:29 +0200
commit0a58b89af7fafc04285a9b3bee43cd3c02864aba (patch)
tree3a7b65e9773b667bd313af6132b89bbe7d2d9090 /debian/apache2.service
parent1bef5ddabce451f9e738c7313eaa756770456252 (diff)
downloadapache2-0a58b89af7fafc04285a9b3bee43cd3c02864aba.tar.gz
Add systemd unit files. Closes: #798430
Partly based on former work of Timo Aaltonen <tjaalton@debian.org>.
Diffstat (limited to 'debian/apache2.service')
-rw-r--r--debian/apache2.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/apache2.service b/debian/apache2.service
new file mode 100644
index 00000000..92a371a8
--- /dev/null
+++ b/debian/apache2.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=The Apache HTTP Server
+After=network.target remote-fs.target nss-lookup.target
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/apachectl start
+ExecStop=/usr/sbin/apachectl stop
+ExecReload=/usr/sbin/apachectl graceful
+PrivateTmp=true
+Restart=on-abort
+
+[Install]
+WantedBy=multi-user.target