summaryrefslogtreecommitdiffhomepage
path: root/auto/options
diff options
context:
space:
mode:
Diffstat (limited to 'auto/options')
-rw-r--r--auto/options10
1 files changed, 10 insertions, 0 deletions
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