Packaging Deb: configure start-stop-daemon to not go into background (#21343)

On ubuntu 14.04, which uses upstart, where as our debian package uses
sysvinit, there is no stdout/stderr message printed when starting up,
because the start-stop-daemon swallows it.

As Elasticsearch is started to daemonize, we can remove the background
flag from the start-stop-daemon and thus see, if the system does not have
enough memory for starting up - something that happens often on VMs, since
Elasticsearch 5.0 uses 2gb by default instead of one.

Relates #21300
Relates #12716
This commit is contained in:
Alexander Reelsen 2016-11-07 13:59:11 +01:00 committed by GitHub
parent 457c87affb
commit 5413efc570
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ case "$1" in
fi fi
# Start Daemon # Start Daemon
start-stop-daemon -d $ES_HOME --start -b --user "$ES_USER" -c "$ES_USER" --pidfile "$PID_FILE" --exec $DAEMON -- $DAEMON_OPTS start-stop-daemon -d $ES_HOME --start --user "$ES_USER" -c "$ES_USER" --pidfile "$PID_FILE" --exec $DAEMON -- $DAEMON_OPTS
return=$? return=$?
if [ $return -eq 0 ]; then if [ $return -eq 0 ]; then
i=0 i=0