[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;"