Home
last modified time | relevance | path

Searched hist:53 (Results 51 – 75 of 108) sorted by relevance

12345

/unit/src/
H A Dnxt_application.hdiff 2426:d5e936f09dc0 Thu Mar 30 04:53:00 UTC 2023 Andrew Clayton <a.clayton@nginx.com> Add per-application logging.

Currently when running in the foreground, unit application processes
will send stdout to the current TTY and stderr to the unit log file.

That behaviour won't change.

When running as a daemon, unit application processes will send stdout to
/dev/null and stderr to the unit log file.

This commit allows to alter the latter case of unit running as a daemon,
by allowing applications to redirect stdout and/or stderr to specific
log files. This is done via two new application options, 'stdout' &
'stderr', e.g

"applications": {
"myapp": {
...
"stdout": "/path/to/log/unit/app/stdout.log",
"stderr": "/path/to/log/unit/app/stderr.log"
}
}

These log files are created by the application processes themselves and
thus the log directories need to be writable by the user (and or group)
of the application processes.

E.g

$ sudo mkdir -p /path/to/log/unit/app
$ sudo chown APP_USER /path/to/log/unit/app

These need to be setup before starting unit with the above config.

Currently these log files do not participate in log-file rotation
(SIGUSR1), that may change in a future commit. In the meantime these
logs can be rotated using the traditional copy/truncate method.

NOTE:

You may or may not see stuff printed to stdout as stdout was
traditionally used by CGI applications to communicate with the
webserver.

Closes: <https://github.com/nginx/unit/issues/197>
Closes: <https://github.com/nginx/unit/issues/846>
Reviewed-by: Alejandro Colomar <alx@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
diff 1759:196b4d90c8cc Tue Dec 22 14:53:00 UTC 2020 Valentin Bartenev <vbart@nginx.com> Python: multiple values in the "path" option.
diff 804:fe8d2dea28dd Tue Oct 09 14:53:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Renamed "go" application type to "external".

There's nothing specific to Go language. This type of application object can
be used to run any external application that utilizes libunit API.
diff 718:f6866084cc80 Wed Jul 11 13:53:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Removed unused "nxt_app_header_field_t" structure.

It's not used since 3b77edf46701.
diff 685:99f3d48664de Wed Jun 06 13:53:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Go: specifying command line arguments to the executable.

This closes #110 issue on GitHub.
diff 612:217e48a3b091 Wed Apr 04 15:53:00 UTC 2018 Alexander Borisov <alexander.borisov@nginx.com> Changed version processing for modules.
H A Dnxt_thread_id.hdiff 735:3f7538f0681a Fri Jul 27 13:53:00 UTC 2018 Igor Sysoev <igor@sysoev.ru> Refactored thread ID functions.

nxt_thread_tid() was moved to src/nxt_thread.c
nxt_thread_get_tid() was moved to src/nxt_thread_id.h.
src/nxt_thread_id.c was removed.
H A Dnxt_epoll_engine.cdiff 53:0b10a73d4993 Wed May 31 12:26:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Skeleton of router configuration and request processing.
H A Dnxt_external.c804:fe8d2dea28dd Tue Oct 09 14:53:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Renamed "go" application type to "external".

There's nothing specific to Go language. This type of application object can
be used to run any external application that utilizes libunit API.
H A Dnxt_kqueue_engine.cdiff 53:0b10a73d4993 Wed May 31 12:26:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Skeleton of router configuration and request processing.
H A Dnxt_event_engine.cdiff 53:0b10a73d4993 Wed May 31 12:26:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Skeleton of router configuration and request processing.
H A Dnxt_thread.hdiff 53:0b10a73d4993 Wed May 31 12:26:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Skeleton of router configuration and request processing.
H A Dnxt_clang.hdiff 53:0b10a73d4993 Wed May 31 12:26:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Skeleton of router configuration and request processing.
H A Dnxt_application.cdiff 2426:d5e936f09dc0 Thu Mar 30 04:53:00 UTC 2023 Andrew Clayton <a.clayton@nginx.com> Add per-application logging.

Currently when running in the foreground, unit application processes
will send stdout to the current TTY and stderr to the unit log file.

That behaviour won't change.

When running as a daemon, unit application processes will send stdout to
/dev/null and stderr to the unit log file.

This commit allows to alter the latter case of unit running as a daemon,
by allowing applications to redirect stdout and/or stderr to specific
log files. This is done via two new application options, 'stdout' &
'stderr', e.g

"applications": {
"myapp": {
...
"stdout": "/path/to/log/unit/app/stdout.log",
"stderr": "/path/to/log/unit/app/stderr.log"
}
}

These log files are created by the application processes themselves and
thus the log directories need to be writable by the user (and or group)
of the application processes.

E.g

$ sudo mkdir -p /path/to/log/unit/app
$ sudo chown APP_USER /path/to/log/unit/app

These need to be setup before starting unit with the above config.

Currently these log files do not participate in log-file rotation
(SIGUSR1), that may change in a future commit. In the meantime these
logs can be rotated using the traditional copy/truncate method.

NOTE:

You may or may not see stuff printed to stdout as stdout was
traditionally used by CGI applications to communicate with the
webserver.

Closes: <https://github.com/nginx/unit/issues/197>
Closes: <https://github.com/nginx/unit/issues/846>
Reviewed-by: Alejandro Colomar <alx@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
diff 804:fe8d2dea28dd Tue Oct 09 14:53:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Renamed "go" application type to "external".

There's nothing specific to Go language. This type of application object can
be used to run any external application that utilizes libunit API.
diff 612:217e48a3b091 Wed Apr 04 15:53:00 UTC 2018 Alexander Borisov <alexander.borisov@nginx.com> Changed version processing for modules.
diff 53:0b10a73d4993 Wed May 31 12:26:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Skeleton of router configuration and request processing.
H A Dnxt_event_engine.hdiff 53:0b10a73d4993 Wed May 31 12:26:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Skeleton of router configuration and request processing.
/unit/test/
H A Dtest_python_targets.pydiff 1984:06514cd08a35 Tue Nov 02 17:53:00 UTC 2021 Andrei Zeliankou <zelenkov@nginx.com> Tests: removed unused imports.
H A Dtest_client_ip.pydiff 1984:06514cd08a35 Tue Nov 02 17:53:00 UTC 2021 Andrei Zeliankou <zelenkov@nginx.com> Tests: removed unused imports.
H A Dtest_asgi_lifespan.pydiff 1984:06514cd08a35 Tue Nov 02 17:53:00 UTC 2021 Andrei Zeliankou <zelenkov@nginx.com> Tests: removed unused imports.
H A Dtest_python_basic.pydiff 1122:453858a43730 Wed Aug 14 12:53:00 UTC 2019 Andrey Zelenkov <zelenkov@nginx.com> Tests: fixed port reusing to avoid access issues.
H A Dtest_php_basic.pydiff 1122:453858a43730 Wed Aug 14 12:53:00 UTC 2019 Andrey Zelenkov <zelenkov@nginx.com> Tests: fixed port reusing to avoid access issues.
H A Dtest_routing.pydiff 1721:53b6ab9b324b Tue Nov 17 15:03:00 UTC 2020 Axel Duch <axel.duch@nginx.com> Router: matching regular expressions support.
diff 1597:be1483ecf2a0 Fri Aug 28 04:53:00 UTC 2020 hongzhidao <hongzhidao@gmail.com> Router: fixed "pass" to upstreams.

Messed up return values in nxt_upstream_find() caused error in applying any
configuration with a valid "pass" value in router configuration pointing to
upstream. That wasn't the case in "listeners" objects, where the return value
wasn't checked.

Also, it caused segfault in cases where the "pass" option was configured with
variables and resulting value was pointing to a non-existent upstream.

Added missing return checks as well to catch possible memory allocation errors.

The bug was introduced in d32bc428f46b.

This closes #472 issue on GitHub.
H A Dtest_php_application.pydiff 1529:7cd42e6d8c20 Tue Jul 28 03:53:00 UTC 2020 Andrei Zeliankou <zelenkov@nginx.com> Tests: added PHP test with time check in error log messages.
diff 1381:6c76371a7a75 Tue Mar 03 18:53:00 UTC 2020 Tiago Natel de Moura <t.nateldemoura@f5.com> Tests: chdir() and open() for PHP module.

These tests ensure optimizations in the chdir calls don't break
SAPI semantics.
H A Dtest_go_isolation.pydiff 1581:a1a83bef4471 Thu Aug 20 14:53:00 UTC 2020 Tiago Natel de Moura <t.nateldemoura@f5.com> Tests: default tmpfs in rootfs.
/unit/test/unit/applications/lang/
H A Dphp.pydiff 1381:6c76371a7a75 Tue Mar 03 18:53:00 UTC 2020 Tiago Natel de Moura <t.nateldemoura@f5.com> Tests: chdir() and open() for PHP module.

These tests ensure optimizations in the chdir calls don't break
SAPI semantics.
/unit/auto/os/
H A Dconfdiff 1255:944efece387a Thu Nov 07 16:53:00 UTC 2019 Valentin Bartenev <vbart@nginx.com> Respecting AR environment variable to configure ar binary.
/unit/auto/
H A Dsourcesdiff 1721:53b6ab9b324b Tue Nov 17 15:03:00 UTC 2020 Axel Duch <axel.duch@nginx.com> Router: matching regular expressions support.
diff 804:fe8d2dea28dd Tue Oct 09 14:53:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Renamed "go" application type to "external".

There's nothing specific to Go language. This type of application object can
be used to run any external application that utilizes libunit API.
diff 735:3f7538f0681a Fri Jul 27 13:53:00 UTC 2018 Igor Sysoev <igor@sysoev.ru> Refactored thread ID functions.

nxt_thread_tid() was moved to src/nxt_thread.c
nxt_thread_get_tid() was moved to src/nxt_thread_id.h.
src/nxt_thread_id.c was removed.
diff 53:0b10a73d4993 Wed May 31 12:26:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Skeleton of router configuration and request processing.
/unit/
H A Dversiondiff 1078:d2264ed35f70 Mon Jun 10 12:53:00 UTC 2019 Valentin Bartenev <vbart@nginx.com> Version bump.
/unit/tools/
H A Dunitcdiff 2485:c46e36e1aa2b Thu Jun 01 16:53:00 UTC 2023 Liam Crilly <liam.crilly@nginx.com> Tools: improved ps(1) portability for unitc.

Improved cross-platform support by trying multiple ps(1) invocations to
obtain the unitd command line parameters. Additional error checking
detects when this process fails.

The first attempt uses `ps -wwo args=COMMAND -p` which has very broad
support and has the additional benefit of simplifying the output for
more reliable parsing of the process info. If that fails then we fall
back to simply `ps`.

The parsing of the process info has also changed. Instead of converting
'[]' into spaces we now convert them into explicit delimiters (using '^').
This is more reliable as it marks the beginning and the end of the info
we care about. Any trailing process information is now ignored (FreeBSD).

Additional error handling improves the robustness when starting unitd with
a different filename or from a relative path. In this case the control
socket and log file detection will fail when running `unitd --help`.
Additional error checking and messages are displayed when the control socket
cannot be determined. A single warning is shown when the log file cannot be
determined.
/unit/src/ruby/
H A Dnxt_ruby.cdiff 1258:f396f2421319 Wed Nov 13 12:53:00 UTC 2019 Max Romanov <max.romanov@nginx.com> Ruby: fixing initialization sequence.

There was a change (ruby/ruby@6c70fed) in Ruby 2.6 that moved
RUBY_DESCRIPTION global constant definition out of Init_version().
Unit initialized Ruby incorrectly, so the constant was not defined.

This closes #330 issue on GitHub.
diff 612:217e48a3b091 Wed Apr 04 15:53:00 UTC 2018 Alexander Borisov <alexander.borisov@nginx.com> Changed version processing for modules.
/unit/test/unit/
H A Dhttp.pydiff 1922:53a9f4983fe0 Fri Jul 23 14:37:00 UTC 2021 Andrei Zeliankou <zelenkov@nginx.com> Tests: added SNI test without hostname in request.

12345