helium / blockchain-etl

Blockchain follower that follows and stores the Helium blockchain
Apache License 2.0
64 stars 37 forks source link

Attempt to restart the service 3 times #291

Closed jadeallenx closed 2 years ago

jadeallenx commented 2 years ago

Problem to solve: Currently systemd will attempt to start the service over and over, even if it keeps crashing. We would like for it to eventually give up if it goes into a failed state.

Solution: Limit restart attempts to 3 times, each one lasting 15 seconds apart, for up to 60 seconds. If the service is still not running by then, enter the failed state and do not attempt to restart until a human does something.