summaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorWido den Hollander <wido@42on.com>2017-01-23 08:18:27 +0100
committerWido den Hollander <wido@42on.com>2017-01-23 08:50:08 +0100
commite73eb8cc1e0d45af1f0b7852c551f2ddfb82a520 (patch)
treee993f22db67c817111f8611b24880ba8c6ab9474 /systemd
parentMerge pull request #12980 from liewegas/wip-osdop-printer (diff)
downloadceph-e73eb8cc1e0d45af1f0b7852c551f2ddfb82a520.tar.xz
ceph-e73eb8cc1e0d45af1f0b7852c551f2ddfb82a520.zip
systemd: Restart Mon after 10s in case of failure
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>
Diffstat (limited to 'systemd')
-rw-r--r--systemd/ceph-mon@.service3
1 files changed, 2 insertions, 1 deletions
diff --git a/systemd/ceph-mon@.service b/systemd/ceph-mon@.service
index 1d80b86dea0..2d139730e60 100644
--- a/systemd/ceph-mon@.service
+++ b/systemd/ceph-mon@.service
@@ -24,7 +24,8 @@ PrivateTmp=true
TasksMax=infinity
Restart=on-failure
StartLimitInterval=30min
-StartLimitBurst=3
+StartLimitBurst=5
+RestartSec=10
[Install]
WantedBy=ceph-mon.target