Skip to content

Commit

Permalink
systemd: Restart Mon after 10s in case of failure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
wido committed Jan 23, 2017
1 parent 65f5187 commit e73eb8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion systemd/ceph-mon@.service
Expand Up @@ -24,7 +24,8 @@ PrivateTmp=true
TasksMax=infinity
Restart=on-failure
StartLimitInterval=30min
StartLimitBurst=3
StartLimitBurst=5
RestartSec=10

[Install]
WantedBy=ceph-mon.target

0 comments on commit e73eb8c

Please sign in to comment.