From: Wido den Hollander Date: Thu, 22 Feb 2018 10:53:41 +0000 (+0100) Subject: systemd: Wait 10 seconds before restarting ceph-mgr X-Git-Tag: v13.0.2~207^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c628cd083e48b6a9c61c25c0192b572ed76e9557;p=ceph.git systemd: Wait 10 seconds before restarting ceph-mgr We do this for the MON and OSD as well, wait for a few seconds before we try to attempt a restart. On boot in IPv6 networks it might take a few seconds longer before a IP-address is usable and this does not allow the mgr to start right away. Fixes: http://tracker.ceph.com/issues/23083 Signed-off-by: Wido den Hollander --- diff --git a/systemd/ceph-mgr@.service b/systemd/ceph-mgr@.service index 6614e54f6a5e..8272ad09c298 100644 --- a/systemd/ceph-mgr@.service +++ b/systemd/ceph-mgr@.service @@ -13,6 +13,7 @@ Environment=CLUSTER=ceph ExecStart=/usr/bin/ceph-mgr -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph ExecReload=/bin/kill -HUP $MAINPID Restart=on-failure +RestartSec=10 StartLimitInterval=30min StartLimitBurst=3