Removed command line option --workers.

This commit is contained in:
Igor Sysoev
2017-08-24 17:29:53 +03:00
parent 6ef9fb7d97
commit 259b90b9d7
2 changed files with 0 additions and 24 deletions

View File

@@ -738,7 +738,6 @@ nxt_runtime_conf_init(nxt_task_t *task, nxt_runtime_t *rt)
rt->daemon = 1;
rt->master_process = 1;
rt->engine_connections = 256;
rt->worker_processes = 1;
rt->auxiliary_threads = 2;
rt->user_cred.user = "nobody";
rt->group = NULL;
@@ -795,7 +794,6 @@ static nxt_int_t
nxt_runtime_conf_read_cmd(nxt_task_t *task, nxt_runtime_t *rt)
{
char *p, **argv;
nxt_int_t n;
nxt_str_t addr;
nxt_sockaddr_t *sa;
@@ -842,27 +840,6 @@ nxt_runtime_conf_read_cmd(nxt_task_t *task, nxt_runtime_t *rt)
continue;
}
if (nxt_strcmp(p, "--workers") == 0) {
if (*argv == NULL) {
nxt_log(task, NXT_LOG_CRIT,
"no argument for option \"--workers\"");
return NXT_ERROR;
}
p = *argv++;
n = nxt_int_parse((u_char *) p, nxt_strlen(p));
if (n < 1) {
nxt_log(task, NXT_LOG_CRIT,
"invalid number of workers: \"%s\"", p);
return NXT_ERROR;
}
rt->worker_processes = n;
continue;
}
if (nxt_strcmp(p, "--user") == 0) {
if (*argv == NULL) {
nxt_log(task, NXT_LOG_CRIT,