Browse Source

Use pkill to shutdown elasticsearch using pid file (#39135)

While running these commands from alias, facing issues using kill `cat pid`, In some situations, the more compact:
```
pkill -F /var/run/myProcess.pid
```
is the way to go.
Neeraj Jain 6 years ago
parent
commit
027c59228f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/reference/setup/install/zip-targz-daemon.asciidoc

+ 1 - 1
docs/reference/setup/install/zip-targz-daemon.asciidoc

@@ -14,7 +14,7 @@ To shut down Elasticsearch, kill the process ID recorded in the `pid` file:
 
 [source,sh]
 --------------------------------------------
-kill `cat pid`
+pkill -F pid 
 --------------------------------------------
 
 NOTE: The startup scripts provided in the <<rpm,RPM>> and <<deb,Debian>>