A
A
artshelom2019-07-05 15:53:41
Java
artshelom, 2019-07-05 15:53:41

How to make a certain number of restarts of the service when it crashes?

I need that when spring-boot crashes, it can only restart a certain number of times, and not all the time when it crashes, how can I do it?
I found this article, but it does not say how to set a certain number

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alfss, 2019-07-07
@artshelom

If you are for production, then solve the issue through systemd , docker or kubernetes. Depending on what you use, if for development, it is not clear why limit the number of restarts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question