summaryrefslogtreecommitdiff
path: root/meta-tizen/meta-tizen-micro/recipes-httpd/nginx/files/nginx.service
diff options
context:
space:
mode:
Diffstat (limited to 'meta-tizen/meta-tizen-micro/recipes-httpd/nginx/files/nginx.service')
-rw-r--r--meta-tizen/meta-tizen-micro/recipes-httpd/nginx/files/nginx.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta-tizen/meta-tizen-micro/recipes-httpd/nginx/files/nginx.service b/meta-tizen/meta-tizen-micro/recipes-httpd/nginx/files/nginx.service
new file mode 100644
index 0000000000..705450e471
--- /dev/null
+++ b/meta-tizen/meta-tizen-micro/recipes-httpd/nginx/files/nginx.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Nginx Server
+After=network.target
+[Service]
+Type=forking
+PIDFile=@SYSCONFDIR@/nginx/run/nginx.pid
+ExecStartPre=mkdir -p @LOCALSTATEDIR@/log/nginx
+ExecStart=@SYSCONFDIR@/init.d/nginx start
+ExecStop=@SYSCONFDIR@/init.d/nginx stop
+[Install]
+WantedBy=multi-user.target
+