OSDN Git Service

Merge pull request #137 from mobinmob/3proxy
[avyssos/void-66-services.git] / usr / share / 66 / service / nginx
index ba75f59..6b4f4a5 100644 (file)
@@ -1,12 +1,14 @@
 [main]
-@type = longrun
-@version = @VERSION@
+@type = classic
+@version = 0.0.2
 @description = "nginx HTTP daemon"
 @user = ( root )
-@options = ( log )
 
 [start]
 @execute = (
-         foreground { execl-toc -d /run/nginx -m 0710 -g nginx -u root }
-         nginx -g "daemon off;"
+       execl-toc -d /run/nginx -m 0710 -g nginx -u root
+       execl-cmdline -s { nginx ${cmd_args} }
 )
+
+[environment]
+cmd_args=!-g "daemon off;error_log stderr info;"