Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
95a8f7ec
Commit
95a8f7ec
authored
9 years ago
by
ocelot-inc
Browse files
Options
Downloads
Patches
Plain Diff
Server signal handling
parent
95facdca
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/sphinx/book/administration.rst
+11
-9
11 additions, 9 deletions
doc/sphinx/book/administration.rst
with
11 additions
and
9 deletions
doc/sphinx/book/administration.rst
+
11
−
9
View file @
95a8f7ec
...
...
@@ -9,15 +9,17 @@ reloading configuration, taking snapshots, log rotation.
Server signal handling
=====================================================================
The server is configured to shut down gracefully on SIGTERM and SIGINT
(keyboard interrupt). SIGUSR1 can be used to save a snapshot. All
other signals are blocked or ignored. The signals are processed in the main
thread event loop. Thus, if the control flow never reaches the event loop
(thanks to a runaway stored procedure), the server stops responding to any
signal, and can only be killed with SIGKILL (this signal can not be ignored).
SIGHUP can be used to cause a log file rotation. See
:ref:`the example in section "Logging" <logging_example>`.
The server processes these signals during the main thread event loop: |br|
SIGHUP: may cause log file rotation, see :ref:`the example in section "Logging" <logging_example>`. |br|
SIGUSR1: may cause saving of a snapshot, see the description of :func:`box.snapshot`. |br|
SIGTERM: may cause graceful shutdown (information will be saved first). |br|
SIGINT also known as keyboard interrupt: may cause graceful shutdown. |br|
SIGKILL: causes shutdown. |br|
Other signals will result in behavior defined by the operating system.
Signals other than SIGKILL may be ignored, especially if the
server is executing a long-running procedure which
prevents return to the main thread event loop.
=====================================================================
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment