nginext has been renamed to unit.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* Copyright (C) NGINX, Inc.
|
||||
*/
|
||||
|
||||
package nginext
|
||||
package unit
|
||||
|
||||
import "C"
|
||||
import "unsafe"
|
||||
@@ -5,7 +5,7 @@
|
||||
* Copyright (C) NGINX, Inc.
|
||||
*/
|
||||
|
||||
package nginext
|
||||
package unit
|
||||
|
||||
import "C"
|
||||
import "unsafe"
|
||||
@@ -49,7 +49,7 @@ nxt_go_new_port_mmap(nxt_go_process_t *process, nxt_port_id_t id)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
name_len = snprintf(name, sizeof(name) - 1, "/nginext.go.%p", name);
|
||||
name_len = snprintf(name, sizeof(name) - 1, "/unit.go.%p", name);
|
||||
|
||||
#if (NXT_HAVE_MEMFD_CREATE)
|
||||
fd = syscall(SYS_memfd_create, name, MFD_CLOEXEC);
|
||||
@@ -3,7 +3,7 @@
|
||||
* Copyright (C) NGINX, Inc.
|
||||
*/
|
||||
|
||||
package nginext
|
||||
package unit
|
||||
|
||||
/*
|
||||
#include "nxt_go_lib.h"
|
||||
@@ -3,7 +3,7 @@
|
||||
* Copyright (C) NGINX, Inc.
|
||||
*/
|
||||
|
||||
package nginext
|
||||
package unit
|
||||
|
||||
/*
|
||||
#include "nxt_go_lib.h"
|
||||
@@ -3,7 +3,7 @@
|
||||
* Copyright (C) NGINX, Inc.
|
||||
*/
|
||||
|
||||
package nginext
|
||||
package unit
|
||||
|
||||
/*
|
||||
#include "nxt_go_lib.h"
|
||||
@@ -3,7 +3,7 @@
|
||||
* Copyright (C) NGINX, Inc.
|
||||
*/
|
||||
|
||||
package nginext
|
||||
package unit
|
||||
|
||||
/*
|
||||
#include "nxt_go_lib.h"
|
||||
@@ -1076,7 +1076,7 @@ nxt_controller_response(nxt_task_t *task, nxt_controller_request_t *req,
|
||||
body->mem.free = nxt_cpymem(body->mem.free, "\r\n", 2);
|
||||
|
||||
size = sizeof("HTTP/1.1 " "\r\n") - 1 + status_line.length
|
||||
+ sizeof("Server: nginext/0.1\r\n") - 1
|
||||
+ sizeof("Server: unit/" NXT_VERSION "\r\n") - 1
|
||||
+ sizeof("Date: Wed, 31 Dec 1986 16:40:00 GMT\r\n") - 1
|
||||
+ sizeof("Content-Type: application/json\r\n") - 1
|
||||
+ sizeof("Content-Length: " "\r\n") - 1 + NXT_SIZE_T_LEN
|
||||
@@ -1098,7 +1098,7 @@ nxt_controller_response(nxt_task_t *task, nxt_controller_request_t *req,
|
||||
status_line.length);
|
||||
|
||||
nxt_str_set(&str, "\r\n"
|
||||
"Server: nginext/0.1\r\n"
|
||||
"Server: unit/" NXT_VERSION "\r\n"
|
||||
"Date: ");
|
||||
|
||||
b->mem.free = nxt_cpymem(b->mem.free, str.start, str.length);
|
||||
|
||||
@@ -16,7 +16,7 @@ main(int argc, char **argv)
|
||||
{
|
||||
nxt_int_t ret;
|
||||
|
||||
if (nxt_lib_start("nginext", argv, &environ) != NXT_OK) {
|
||||
if (nxt_lib_start("unit", argv, &environ) != NXT_OK) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ main(int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
nxt_log(&nxt_main_task, NXT_LOG_INFO, "nginext started");
|
||||
nxt_log(&nxt_main_task, NXT_LOG_INFO, "unit started");
|
||||
|
||||
nxt_event_engine_start(nxt_main_task.thread->engine);
|
||||
|
||||
|
||||
@@ -270,7 +270,7 @@ nxt_main_process_title(nxt_task_t *task)
|
||||
|
||||
end = title + sizeof(title) - 1;
|
||||
|
||||
p = nxt_sprintf(title, end, "nginext: main [%s", nxt_process_argv[0]);
|
||||
p = nxt_sprintf(title, end, "unit: main [%s", nxt_process_argv[0]);
|
||||
|
||||
for (i = 1; nxt_process_argv[i] != NULL; i++) {
|
||||
p = nxt_sprintf(p, end, " %s", nxt_process_argv[i]);
|
||||
|
||||
@@ -59,7 +59,7 @@ static void nxt_php_flush(void *server_context);
|
||||
static sapi_module_struct nxt_php_sapi_module =
|
||||
{
|
||||
(char *) "cli-server",
|
||||
(char *) "nginext",
|
||||
(char *) "unit",
|
||||
|
||||
nxt_php_startup, /* startup */
|
||||
php_module_shutdown_wrapper, /* shutdown */
|
||||
@@ -497,13 +497,13 @@ nxt_php_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC)
|
||||
|
||||
static const u_char default_repsonse[]
|
||||
= "HTTP/1.1 200 OK\r\n"
|
||||
"Server: nginext/0.1\r\n"
|
||||
"Server: unit/" NXT_VERSION "\r\n"
|
||||
"Content-Type: text/html; charset=UTF-8\r\n"
|
||||
"Connection: close\r\n"
|
||||
"\r\n";
|
||||
|
||||
static const u_char default_headers[]
|
||||
= "Server: nginext/0.1\r\n"
|
||||
- "Server: unit/" NXT_VERSION "\r\n"
|
||||
"Connection: close\r\n";
|
||||
|
||||
static const u_char http_11[] = "HTTP/1.1 ";
|
||||
|
||||
@@ -236,7 +236,7 @@ nxt_port_new_port_mmap(nxt_task_t *task, nxt_process_t *process,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
p = nxt_sprintf(name, name + sizeof(name), "/nginext.%PI.%uxD",
|
||||
p = nxt_sprintf(name, name + sizeof(name), "/unit.%PI.%uxD",
|
||||
nxt_pid, nxt_random(&task->thread->random));
|
||||
*p = '\0';
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ nxt_process_start(nxt_task_t *task, nxt_process_t *process)
|
||||
|
||||
nxt_log(task, NXT_LOG_INFO, "%s started", init->name);
|
||||
|
||||
nxt_process_title(task, "nginext: %s", init->name);
|
||||
nxt_process_title(task, "unit: %s", init->name);
|
||||
|
||||
thread = task->thread;
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ NXT_EXPORT nxt_application_module_t nxt_app_module = {
|
||||
|
||||
|
||||
static PyMethodDef nxt_py_start_resp_method[] = {
|
||||
{"nginext_start_response", nxt_py_start_resp, METH_VARARGS, ""}
|
||||
{"unit_start_response", nxt_py_start_resp, METH_VARARGS, ""}
|
||||
};
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ static PyMethodDef nxt_py_input_methods[] = {
|
||||
|
||||
static PyTypeObject nxt_py_input_type = {
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
"nginext._input", /* tp_name */
|
||||
"unit._input", /* tp_name */
|
||||
(int) sizeof(nxt_py_input_t), /* tp_basicsize */
|
||||
0, /* tp_itemsize */
|
||||
(destructor) nxt_py_input_dealloc, /* tp_dealloc */
|
||||
@@ -140,7 +140,7 @@ static PyTypeObject nxt_py_input_type = {
|
||||
0, /* tp_setattro */
|
||||
0, /* tp_as_buffer */
|
||||
Py_TPFLAGS_DEFAULT, /* tp_flags */
|
||||
"nginext input object.", /* tp_doc */
|
||||
"unit input object.", /* tp_doc */
|
||||
0, /* tp_traverse */
|
||||
0, /* tp_clear */
|
||||
0, /* tp_richcompare */
|
||||
@@ -247,7 +247,7 @@ nxt_python_init(nxt_task_t *task, nxt_common_app_conf_t *conf)
|
||||
|
||||
nxt_py_environ_ptyp = obj;
|
||||
|
||||
obj = Py_BuildValue("[s]", "nginext");
|
||||
obj = Py_BuildValue("[s]", "unit");
|
||||
if (obj == NULL) {
|
||||
nxt_log_alert(task->log,
|
||||
"Python failed to create the \"sys.argv\" list");
|
||||
@@ -730,7 +730,7 @@ nxt_py_start_resp(PyObject *self, PyObject *args)
|
||||
static const u_char resp[] = "HTTP/1.1 ";
|
||||
|
||||
static const u_char default_headers[]
|
||||
= "Server: nginext/0.1\r\n"
|
||||
= "Server: unit/" NXT_VERSION "\r\n"
|
||||
"Connection: close\r\n";
|
||||
|
||||
static const u_char cr_lf[] = "\r\n";
|
||||
|
||||
@@ -763,7 +763,7 @@ nxt_runtime_conf_init(nxt_task_t *task, nxt_runtime_t *rt)
|
||||
slash = "/";
|
||||
}
|
||||
|
||||
ret = nxt_file_name_create(rt->mem_pool, &file_name, "%s%snginext.*%Z",
|
||||
ret = nxt_file_name_create(rt->mem_pool, &file_name, "%s%sunit.*%Z",
|
||||
rt->modules, slash);
|
||||
if (nxt_slow_path(ret != NXT_OK)) {
|
||||
return NXT_ERROR;
|
||||
@@ -797,7 +797,7 @@ nxt_runtime_conf_read_cmd(nxt_task_t *task, nxt_runtime_t *rt)
|
||||
u_char buf[1024];
|
||||
|
||||
static const char version[] =
|
||||
"nginext version: " NXT_VERSION "\n"
|
||||
"unit version: " NXT_VERSION "\n"
|
||||
"configured as ./configure" NXT_CONFIGURE_OPTIONS "\n";
|
||||
|
||||
static const char no_control[] =
|
||||
@@ -811,11 +811,11 @@ nxt_runtime_conf_read_cmd(nxt_task_t *task, nxt_runtime_t *rt)
|
||||
|
||||
static const char help[] =
|
||||
"\n"
|
||||
"nginext options:\n"
|
||||
"unit options:\n"
|
||||
"\n"
|
||||
" --version print nginext version and configure options\n"
|
||||
" --version print unit version and configure options\n"
|
||||
"\n"
|
||||
" --no-daemon run nginext in non-daemon mode\n"
|
||||
" --no-daemon run unit in non-daemon mode\n"
|
||||
"\n"
|
||||
" --control ADDRESS set address of control API socket\n"
|
||||
" default: \"" NXT_CONTROL_SOCK "\"\n"
|
||||
|
||||
Reference in New Issue
Block a user