OSDN Git Service

nginx:improvements
authormobinmob <mobinmob@disroot.org>
Tue, 4 May 2021 21:39:45 +0000 (00:39 +0300)
committermobinmob <mobinmob@disroot.org>
Tue, 4 May 2021 21:39:45 +0000 (00:39 +0300)
- change @type to classic
- move arguments to [environment]
- explicitly send logs (not access logs) to stderr for the per-service
logger.

usr/share/66/service/nginx

index 09c03db..6b4f4a5 100644 (file)
@@ -1,12 +1,14 @@
 [main]
-@type = longrun
-@version = 0.0.1
+@type = classic
+@version = 0.0.2
 @description = "nginx HTTP daemon"
 @user = ( root )
-@options = ( log )
 
 [start]
 @execute = (
-        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;"