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

database connection error crashes mailer service #241

Open
TheJJ opened this issue Nov 18, 2024 · 1 comment
Open

database connection error crashes mailer service #241

TheJJ opened this issue Nov 18, 2024 · 1 comment

Comments

@TheJJ
Copy link
Member

TheJJ commented Nov 18, 2024

when the DB is not there due to restarts, the mailer service crashes and has no proper recovery, except restarts from systemd that did reach the restart limit.

@sleepy-nols
Copy link

I think this could be fixed with using Requires instead of After (or both) in the mailer service with postgresql. Then the mailer service should not be started until postgres is up.
https://serverfault.com/questions/812584/in-systemd-whats-the-difference-between-after-and-requires

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

No branches or pull requests

2 participants