From 94c158b3385c0d53f6535dd74c330aa579eb88e2 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Wed, 20 May 2020 16:04:15 +0200 Subject: [PATCH] nginx: do not start in daemon mode with service script. --- packages/nginx/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nginx/build.sh b/packages/nginx/build.sh index 516df9488..ea693bfa1 100644 --- a/packages/nginx/build.sh +++ b/packages/nginx/build.sh @@ -2,11 +2,12 @@ TERMUX_PKG_HOMEPAGE=https://www.nginx.org TERMUX_PKG_DESCRIPTION="Lightweight HTTP server" TERMUX_PKG_LICENSE="BSD 2-Clause" TERMUX_PKG_VERSION=1.18.0 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=http://nginx.org/download/nginx-$TERMUX_PKG_VERSION.tar.gz TERMUX_PKG_SHA256=4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99 TERMUX_PKG_DEPENDS="libandroid-glob, libcrypt, pcre, openssl, zlib" TERMUX_PKG_BUILD_IN_SRC=true -TERMUX_PKG_SERVICE_SCRIPT=("nginx" 'mkdir -p ~/.nginx\nif [ -f "$HOME/.nginx/nginx.conf" ]; then CONFIG="$HOME/.nginx/nginx.conf"; else CONFIG="$PREFIX/etc/nginx/nginx.conf"; fi\nexec nginx -p ~/.nginx -c $CONFIG 2>&1') +TERMUX_PKG_SERVICE_SCRIPT=("nginx" 'mkdir -p ~/.nginx\nif [ -f "$HOME/.nginx/nginx.conf" ]; then CONFIG="$HOME/.nginx/nginx.conf"; else CONFIG="$PREFIX/etc/nginx/nginx.conf"; fi\nexec nginx -p ~/.nginx -g "daemon off;" -c $CONFIG 2>&1') TERMUX_PKG_CONFFILES=" etc/nginx/fastcgi.conf etc/nginx/fastcgi_params