summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_main_process.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-09-05 10:22:44 -0700
committerMax Romanov <max.romanov@nginx.com>2017-09-05 10:22:44 -0700
commitf1685e371fe8a3bb9442fe2c5e0e33f5da0ac4f9 (patch)
treeed499fb4dabc60c607f6591cafa6520a99d10803 /src/nxt_main_process.c
parentdb6d2b96877dac089e22817fc9896a45ea410d8d (diff)
downloadunit-f1685e371fe8a3bb9442fe2c5e0e33f5da0ac4f9.tar.gz
unit-f1685e371fe8a3bb9442fe2c5e0e33f5da0ac4f9.tar.bz2
Introducing working_directory directive for applications.
Diffstat (limited to 'src/nxt_main_process.c')
-rw-r--r--src/nxt_main_process.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nxt_main_process.c b/src/nxt_main_process.c
index 34fc7ea0..a7e1adb1 100644
--- a/src/nxt_main_process.c
+++ b/src/nxt_main_process.c
@@ -105,6 +105,12 @@ static nxt_conf_map_t nxt_common_app_conf[] = {
},
{
+ nxt_string("working_directory"),
+ NXT_CONF_MAP_CSTRZ,
+ offsetof(nxt_common_app_conf_t, working_directory),
+ },
+
+ {
nxt_string("workers"),
NXT_CONF_MAP_INT32,
offsetof(nxt_common_app_conf_t, workers),