mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
[DOCS] Clarify methods for stopping Logstash (#9828)
This commit is contained in:
parent
e2ba8c29d8
commit
f8a81f870a
1 changed files with 8 additions and 3 deletions
11
docs/static/shutdown.asciidoc
vendored
11
docs/static/shutdown.asciidoc
vendored
|
@ -1,7 +1,7 @@
|
|||
[[shutdown]]
|
||||
=== Shutting Down Logstash
|
||||
|
||||
To shut down Logstash, use one of the following commands:
|
||||
If you're running {ls} as a service, use one of the following commands to stop it:
|
||||
|
||||
* On systemd, use:
|
||||
+
|
||||
|
@ -24,13 +24,18 @@ initctl stop logstash
|
|||
/etc/init.d/logstash stop
|
||||
----
|
||||
|
||||
* If you have the PID, use:
|
||||
+
|
||||
If you're running {ls} directly in the console on a POSIX system, you can stop
|
||||
it by sending SIGTERM to the {ls} process. For example:
|
||||
|
||||
[source,shell]
|
||||
----
|
||||
kill -TERM {logstash_pid}
|
||||
----
|
||||
|
||||
Alternatively, enter *Ctrl-C* in the console.
|
||||
|
||||
|
||||
|
||||
==== What Happens During a Controlled Shutdown?
|
||||
|
||||
When you attempt to shut down a running Logstash instance, Logstash performs several steps before it can safely shut down. It must:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue