diff options
author | Anoop C S <anoopcs@redhat.com> | 2020-06-19 11:27:38 +0530 |
---|---|---|
committer | Anoop C S <anoopcs@cryptolab.net> | 2020-06-19 07:06:38 +0000 |
commit | d55218781876005323d8c146ed4bd73e2146866a (patch) | |
tree | 2a0ecf41c7579b1a366efae36ee2d3a0c9c85fa4 | |
parent | 2ef75183ab3faa68b79d3d38318d4120cfc657d1 (diff) |
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 <anoopcs@redhat.com>
-rw-r--r-- | extras/systemd/glusterd.service.in | 3 |
1 files changed, 2 insertions, 1 deletions
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] |