]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
systemd: Restart Mon after 10s in case of failure
authorWido den Hollander <wido@42on.com>
Mon, 23 Jan 2017 07:18:27 +0000 (08:18 +0100)
committerWido den Hollander <wido@42on.com>
Mon, 23 Jan 2017 07:50:08 +0000 (08:50 +0100)
In some situations the IP address the Monitor wants to bind to
might not be available yet.

This might for example be a IPv6 Address which is still performing
DAD or waiting for a Router Advertisement to be send by the Router(s).

Have systemd wait for 10s before starting the Mon and increase the amount
of times it does so to 5.

This allows the system to bring up IP Addresses in the mean time while
systemd waits with restarting the Mon.

Fixes: #18635
Signed-off-by: Wido den Hollander <wido@42on.com>
systemd/ceph-mon@.service

index 1d80b86dea00fa70b8fbce8d99c398664e41ae21..2d139730e60ff14b619f851212c4b90950fef4d0 100644 (file)
@@ -24,7 +24,8 @@ PrivateTmp=true
 TasksMax=infinity
 Restart=on-failure
 StartLimitInterval=30min
-StartLimitBurst=3
+StartLimitBurst=5
+RestartSec=10
 
 [Install]
 WantedBy=ceph-mon.target