Remove unnecessary sleep from init script restart
Today when restarting Elasticsearch using the start-stop-daemon on Debian-based systems using System V init, we sleep for one second between the process successfully stopping and starting the process again. This sleep is unnecessary as the stop function retries forever until the previous instance successfully terminates. This commit removes that unncessary sleep. Relates #17966
This commit is contained in:
parent
4a1a03428d
commit
8a5032fae5
|
@ -2,13 +2,6 @@
|
|||
#
|
||||
# /etc/init.d/elasticsearch -- startup script for Elasticsearch
|
||||
#
|
||||
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
|
||||
# Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>.
|
||||
# Modified for Tomcat by Stefan Gybas <sgybas@debian.org>.
|
||||
# Modified for Tomcat6 by Thierry Carrez <thierry.carrez@ubuntu.com>.
|
||||
# Additional improvements by Jason Brittain <jason.brittain@mulesoft.com>.
|
||||
# Modified by Nicolas Huray for Elasticsearch <nicolas.huray@gmail.com>.
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: elasticsearch
|
||||
# Required-Start: $network $remote_fs $named
|
||||
|
@ -193,7 +186,6 @@ case "$1" in
|
|||
restart|force-reload)
|
||||
if [ -f "$PID_FILE" ]; then
|
||||
$0 stop
|
||||
sleep 1
|
||||
fi
|
||||
$0 start
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue