diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-08-26 13:37:44 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-08-26 13:37:44 +0300 |
commit | e64494ba2cba9322f9594f26bcc69cb3a2441105 (patch) | |
tree | 4f0907e6f1000755a3d2f87c86932b18f1293401 /auto | |
parent | d3a6d7805f9f869f3a786080a9e0586b4844034f (diff) | |
download | unit-e64494ba2cba9322f9594f26bcc69cb3a2441105.tar.gz unit-e64494ba2cba9322f9594f26bcc69cb3a2441105.tar.bz2 |
Added configure option --pid=FILE.
A pid file name can be relative.
The default pid file name is "nginext.pid".
Diffstat (limited to 'auto')
-rw-r--r-- | auto/options | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/auto/options b/auto/options index 7bd4606a..b7fcc179 100644 --- a/auto/options +++ b/auto/options @@ -13,6 +13,7 @@ NXT_CC_OPT= NXT_LD_OPT= NXT_PREFIX= +NXT_PID="nginext.pid" NXT_LOG="nginext.log" NXT_DEBUG=NO @@ -58,6 +59,7 @@ do --build-dir=*) NXT_BUILD_DIR="$value" ;; --prefix=*) NXT_PREFIX="$value" ;; + --pid=*) NXT_PID="$value" ;; --log=*) NXT_LOG="$value" ;; --debug) NXT_DEBUG=YES ;; @@ -107,6 +109,11 @@ case "$NXT_PREFIX" in *) NXT_PREFIX="$NXT_PREFIX/" ;; esac +case "$NXT_PID" in + /*) ;; + *) NXT_PID="$NXT_PREFIX$NXT_PID" ;; +esac + case "$NXT_LOG" in /*) ;; *) NXT_LOG="$NXT_PREFIX$NXT_LOG" ;; |