Added configure and command line option --control.
This commit is contained in:
10
auto/options
10
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
|
||||
|
||||
Reference in New Issue
Block a user