Configuration persistence.

Now configuration survives server reloads.
This commit is contained in:
Valentin Bartenev
2017-09-10 06:22:15 +03:00
parent 72c3e08158
commit 4953e5b5cb
10 changed files with 244 additions and 2 deletions

2
configure vendored
View File

@@ -33,6 +33,7 @@ NXT_DAEMON=unitd
NXT_BINDIR="bin"
NXT_SBINDIR="sbin"
NXT_MODULES="$NXT_BUILD_DIR"
NXT_STATE="$NXT_BUILD_DIR"
NXT_PID="unit.pid"
NXT_LOG="unit.log"
NXT_CONTROL="unix:control.unit.sock"
@@ -81,6 +82,7 @@ cat << END >> $NXT_AUTO_CONFIG_H
#define NXT_PID "$NXT_PID"
#define NXT_LOG "$NXT_LOG"
#define NXT_MODULES "$NXT_MODULES"
#define NXT_STATE "$NXT_STATE"
#define NXT_CONTROL_SOCK "$NXT_CONTROL"