aboutsummaryrefslogtreecommitdiffstats
path: root/meta-webserver/recipes-httpd/apache2/files
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-08-25 14:47:20 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2014-08-27 12:49:20 +0200
commit49cb17b4978bf586311f5b8ab4b1b3810098c297 (patch)
treef3fbedd3cff15ff3c662e2d0b06a732491e72d8e /meta-webserver/recipes-httpd/apache2/files
parent44834de2a3651cb84c8f46489fb6a5f75d6a6787 (diff)
downloadmeta-openembedded-contrib-49cb17b4978bf586311f5b8ab4b1b3810098c297.tar.gz
apache2: add systemd unit file
Add systemd unit file for apache2. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-webserver/recipes-httpd/apache2/files')
-rw-r--r--meta-webserver/recipes-httpd/apache2/files/apache2.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta-webserver/recipes-httpd/apache2/files/apache2.service b/meta-webserver/recipes-httpd/apache2/files/apache2.service
new file mode 100644
index 0000000000..f4bcf9efaf
--- /dev/null
+++ b/meta-webserver/recipes-httpd/apache2/files/apache2.service
@@ -0,0 +1,14 @@
+[Unit]
+Decription=The Apache HTTP Server
+After=network.target remote-fs.target nss-lookup.target
+
+[Service]
+Type=simple
+Environment=LANG=C
+ExecStart=@SBINDIR@/httpd -DFOREGROUND -D SSL -D PHP5 -k start
+ExecStop=@BASE_BINDIR@/kill -WINCH ${MAINPID}
+KillSignal=SIGCONT
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target