Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
027c59228f
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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>>