summaryrefslogtreecommitdiffstats
path: root/meta-webserver/recipes-httpd/nginx/files/nginx.service
diff options
context:
space:
mode:
authorAlejandro Hernandez <alejandro.hernandez@linux.intel.com>2015-05-15 01:46:08 -0500
committerMartin Jansa <Martin.Jansa@gmail.com>2015-05-22 20:13:32 +0200
commitc8ae4dc8ce180bfdf706d98c1501105c97899f5b (patch)
tree52eb8733ddbe6dac62d912eee61a317fc2dd8ad4 /meta-webserver/recipes-httpd/nginx/files/nginx.service
parent54def94d4e7aa8900fec58e6aaef8f8c3b0b563e (diff)
downloadmeta-openembedded-c8ae4dc8ce180bfdf706d98c1501105c97899f5b.tar.gz
nginx: Add suport for systemd
Adds support for systemd, creates a service for nginx and installs it if required Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-webserver/recipes-httpd/nginx/files/nginx.service')
-rw-r--r--meta-webserver/recipes-httpd/nginx/files/nginx.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta-webserver/recipes-httpd/nginx/files/nginx.service b/meta-webserver/recipes-httpd/nginx/files/nginx.service
new file mode 100644
index 000000000..705450e47
--- /dev/null
+++ b/meta-webserver/recipes-httpd/nginx/files/nginx.service
@@ -0,0 +1,12 @@
1[Unit]
2Description=Nginx Server
3After=network.target
4[Service]
5Type=forking
6PIDFile=@SYSCONFDIR@/nginx/run/nginx.pid
7ExecStartPre=mkdir -p @LOCALSTATEDIR@/log/nginx
8ExecStart=@SYSCONFDIR@/init.d/nginx start
9ExecStop=@SYSCONFDIR@/init.d/nginx stop
10[Install]
11WantedBy=multi-user.target
12