OSDN Git Service

New service: nginx_ns
authormobinmob <mobinmob@disroot.org>
Tue, 4 May 2021 21:42:41 +0000 (00:42 +0300)
committermobinmob <mobinmob@disroot.org>
Tue, 4 May 2021 21:42:41 +0000 (00:42 +0300)
- 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.

usr/share/66/service/nginx_ns [new file with mode: 0644]

diff --git a/usr/share/66/service/nginx_ns b/usr/share/66/service/nginx_ns
new file mode 100644 (file)
index 0000000..dcee5cd
--- /dev/null
@@ -0,0 +1,14 @@
+[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;"