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)
This commit is contained in:
@@ -64,18 +64,13 @@ After=syslog.target network-online.target remote-fs.target nss-lookup.target
|
|||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=simple
|
||||||
PIDFile=/usr/local/openresty/nginx/logs/nginx.pid
|
|
||||||
ExecStartPre=/usr/local/openresty/nginx/sbin/nginx -t
|
ExecStartPre=/usr/local/openresty/nginx/sbin/nginx -t
|
||||||
ExecStart=/usr/local/openresty/nginx/sbin/nginx
|
ExecStart=/usr/local/openresty/nginx/sbin/nginx -g 'daemon off;'
|
||||||
ExecReload=/bin/kill -s HUP $MAINPID
|
|
||||||
ExecStop=/bin/kill -s QUIT $MAINPID
|
|
||||||
PrivateTmp=true
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
systemctl daemon-reload
|
|
||||||
msg_ok "Built OpenResty"
|
msg_ok "Built OpenResty"
|
||||||
|
|
||||||
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
|
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
|
||||||
|
|||||||
Reference in New Issue
Block a user