Added configure and command line option --control.

This commit is contained in:
Igor Sysoev
2017-08-26 13:37:44 +03:00
parent 7f5b57bfb9
commit 0d65c896cf
6 changed files with 53 additions and 39 deletions

View File

@@ -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