From d55218781876005323d8c146ed4bd73e2146866a Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Fri, 19 Jun 2020 11:27:38 +0530 Subject: extras/systemd: Move StartLimitIntervalSec to [Unit] section It has been a while since systemd moved[1] StartLimitInterval= and StartLimitBurst= options(along with some others) from [Service] to [Unit] section. Additionally StartLimitInterval= got renamed[2] to StartLimitIntervalSec= and can be configured only in [Service] section. Therefore making necessary modifications to avoid following warning: $ sudo systemd-analyze verify glusterd.service /usr/local/lib/systemd/system/glusterd.service:21: Unknown key name 'StartLimitIntervalSec' in section 'Service', ignoring. For backward compatability reasons those options configured in [Service] section are also honoured but officially documented in man systemd.unit(5)[3]. [1] https://github.com/systemd/systemd/commit/6bf0f408e4833152197fb38fb10a9989c89f3a59 [2] https://github.com/systemd/systemd/commit/f0367da7d1a61ad698a55d17b5c28ddce0dc265a [3] https://www.freedesktop.org/software/systemd/man/systemd.unit.html Change-Id: I72a5b65930ddcf1d84c7e66f11685fa9a6fbda9a Updates: #1000 Signed-off-by: Anoop C S --- extras/systemd/glusterd.service.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extras/systemd/glusterd.service.in b/extras/systemd/glusterd.service.in index 8b25b16ac9f..abb0d82911f 100644 --- a/extras/systemd/glusterd.service.in +++ b/extras/systemd/glusterd.service.in @@ -1,6 +1,8 @@ [Unit] Description=GlusterFS, a clustered file-system server Documentation=man:glusterd(8) +StartLimitBurst=6 +StartLimitIntervalSec=3600 Requires=@RPCBIND_SERVICE@ After=network.target @RPCBIND_SERVICE@ Before=network-online.target @@ -18,7 +20,6 @@ SuccessExitStatus=15 Restart=on-abnormal RestartSec=60 StartLimitBurst=6 -StartLimitIntervalSec=3600 StartLimitInterval=3600 [Install] -- cgit