- same as nginx, but uses 66-ns to avoid keeping the daemon in the
foreground and still run it under supervision,
- does not replace nginx currently, as 66-ns cannot detect -yet- crashes
in order to restart the service.
--- /dev/null
+[main]
+@type = classic
+@version = 0.0.1
+@description = "nginx HTTP daemon"
+@user = ( root )
+
+[start]
+@execute = (
+ execl-toc -d /run/nginx -m 0710 -g nginx -u root
+ execl-cmdline -s { 66-ns -o unshare=pid nginx ${cmd_args} }
+)
+
+[environment]
+cmd_args=!-g "error_log stderr info;"