From a6921a33f37e62b3461a3f8b352371c500250f60 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Sat, 21 Mar 2026 19:02:08 +0100 Subject: [PATCH] fix(nginxproxymanager): simplify openresty service for LXC compatibility - Switch from Type=forking to Type=simple with 'daemon off;' - Remove PIDFile, ExecReload, ExecStop (systemd handles these) - Remove PrivateTmp=true (incompatible with LXC containers) --- install/nginxproxymanager-install.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/install/nginxproxymanager-install.sh b/install/nginxproxymanager-install.sh index 59c227d40..21759bad2 100644 --- a/install/nginxproxymanager-install.sh +++ b/install/nginxproxymanager-install.sh @@ -64,18 +64,13 @@ After=syslog.target network-online.target remote-fs.target nss-lookup.target Wants=network-online.target [Service] -Type=forking -PIDFile=/usr/local/openresty/nginx/logs/nginx.pid +Type=simple ExecStartPre=/usr/local/openresty/nginx/sbin/nginx -t -ExecStart=/usr/local/openresty/nginx/sbin/nginx -ExecReload=/bin/kill -s HUP $MAINPID -ExecStop=/bin/kill -s QUIT $MAINPID -PrivateTmp=true +ExecStart=/usr/local/openresty/nginx/sbin/nginx -g 'daemon off;' [Install] WantedBy=multi-user.target EOF -systemctl daemon-reload msg_ok "Built OpenResty" NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs