From 07aede135d8c9db6990e152088fd3944ebae8537 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Tue, 28 Jul 2020 16:57:13 -0700 Subject: [PATCH] Set the systemd initial timeout to 75 seconds (#60345) For systemd, while we are starting up, we notify the system every 15 seconds that we are still in the middle of starting up. However, if initial startup before plugin initialization is slower than 15 seconds, we won't ever get the chance to run the first timeout extension. This commit sets the initial timeout to 75 seconds, up from the default 30 seconds used by systemd. closes #60140 --- distribution/packages/src/common/systemd/elasticsearch.service | 3 +++ 1 file changed, 3 insertions(+) diff --git a/distribution/packages/src/common/systemd/elasticsearch.service b/distribution/packages/src/common/systemd/elasticsearch.service index 8b030053090..797a3a4c740 100644 --- a/distribution/packages/src/common/systemd/elasticsearch.service +++ b/distribution/packages/src/common/systemd/elasticsearch.service @@ -57,6 +57,9 @@ SendSIGKILL=no # When a JVM receives a SIGTERM signal it exits with code 143 SuccessExitStatus=143 +# Allow a slow startup before the systemd notifier module kicks in to extend the timeout +TimeoutStartSec=75 + [Install] WantedBy=multi-user.target