diff options
author | Alejandro Hernandez <alejandro.hernandez@linux.intel.com> | 2015-05-15 01:46:08 -0500 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2015-05-22 20:13:32 +0200 |
commit | c8ae4dc8ce180bfdf706d98c1501105c97899f5b (patch) | |
tree | 52eb8733ddbe6dac62d912eee61a317fc2dd8ad4 /meta-webserver/recipes-httpd/nginx/files/nginx.service | |
parent | 54def94d4e7aa8900fec58e6aaef8f8c3b0b563e (diff) | |
download | meta-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.service | 12 |
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] | ||
2 | Description=Nginx Server | ||
3 | After=network.target | ||
4 | [Service] | ||
5 | Type=forking | ||
6 | PIDFile=@SYSCONFDIR@/nginx/run/nginx.pid | ||
7 | ExecStartPre=mkdir -p @LOCALSTATEDIR@/log/nginx | ||
8 | ExecStart=@SYSCONFDIR@/init.d/nginx start | ||
9 | ExecStop=@SYSCONFDIR@/init.d/nginx stop | ||
10 | [Install] | ||
11 | WantedBy=multi-user.target | ||
12 | |||