Skip to content

Commit 4550140

Browse files
committed
Add detail for getting PID to shutdown docs
1 parent 94ef28b commit 4550140

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

docs/reference/setup/stopping.asciidoc

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,29 @@ functionality provided by your installation.
1111

1212
If you're running Elasticsearch directly, you can stop Elasticsearch by sending control-C if you're
1313
running Elasticsearch in the console, or by sending `SIGTERM` to the Elasticsearch process on a
14-
POSIX system. You can obtain the PID to send the signal to via various tools (e.g., `ps` or `jps`),
15-
from the Elasticsearch statrup logs, or by specifying a location to write a PID file to on startup
16-
(`-p <path>`).
14+
POSIX system. You can obtain the PID to send the signal to via various tools (e.g., `ps` or `jps`):
15+
16+
[source,sh]
17+
--------------------------------------------------
18+
$ jps | grep Elasticsearch
19+
14542 Elasticsearch
20+
--------------------------------------------------
21+
22+
From the Elasticsearch startup logs:
23+
24+
[source,sh]
25+
--------------------------------------------------
26+
[2016-07-07 12:26:18,908][INFO ][node ] [Reaper] version[5.0.0-alpha4], pid[15399], build[3f5b994/2016-06-27T16:23:46.861Z], OS[Mac OS X/10.11.5/x86_64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_92/25.92-b14]
27+
--------------------------------------------------
28+
29+
Or by specifying a location to write a PID file to on startup (`-p <path>`):
1730

1831
[source,sh]
1932
--------------------------------------------------
2033
$ ./bin/elasticsearch -p /tmp/elasticsearch-pid -d
2134
$ cat /tmp/elasticsearch-pid && echo
22-
7801
23-
$ kill -SIGTERM 7801
35+
15516
36+
$ kill -SIGTERM 15516
2437
--------------------------------------------------
2538

2639
[[fatal-errors]

0 commit comments

Comments
 (0)