From 0d65c896cfa45f5e3fef05d95c9409fd68ff45c8 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sat, 26 Aug 2017 13:37:44 +0300 Subject: Added configure and command line option --control. --- auto/options | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'auto') diff --git a/auto/options b/auto/options index b013a7ae..b21fe5c4 100644 --- a/auto/options +++ b/auto/options @@ -17,6 +17,8 @@ NXT_PID="nginext.pid" NXT_LOG="nginext.log" NXT_MODULES="modules" +NXT_CONTROL="unix:control.unit.sock" + NXT_USER="nobody" NXT_GROUP= @@ -67,6 +69,8 @@ do --log=*) NXT_LOG="$value" ;; --modules=*) NXT_MODULES="$value" ;; + --control=*) NXT_CONTROL="$value" ;; + --user=*) NXT_USER="$value" ;; --group=*) NXT_GROUP="$value" ;; @@ -136,3 +140,9 @@ case "$NXT_MODULES" in /*) ;; *) NXT_MODULES="$NXT_PREFIX$NXT_MODULES" ;; esac + +case "$NXT_CONTROL" in + unix:/*) ;; + unix:*) NXT_CONTROL="unix:$NXT_PREFIX${NXT_CONTROL##unix:}" ;; + *) ;; +esac -- cgit