[DOCS] Clarify methods for stopping Logstash (#9828)

This commit is contained in:
Lisa Cawley 2018-07-11 09:14:39 -07:00 committed by GitHub
parent e2ba8c29d8
commit f8a81f870a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: