Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postgres: Don't infinitely keep restarting when DB couldn't start #309

Closed
srid opened this issue Sep 3, 2024 · 1 comment · Fixed by #311
Closed

postgres: Don't infinitely keep restarting when DB couldn't start #309

srid opened this issue Sep 3, 2024 · 1 comment · Fixed by #311

Comments

@srid
Copy link
Member

srid commented Sep 3, 2024

This just goes on an infinite loop trying to restart when it will never succeed. Should we not crash the whole process?

image

cf.

availability.restart = "on_failure";

@srid
Copy link
Member Author

srid commented Sep 3, 2024

This can be reproduced by simply running two instances of nix run ....

As an aside, perhaps all services-flake service should check for lockfile on its data directory and crash immediately if it was acquired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant