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

Tirex-Backend-Manager should fail to start if a mapnik style cannot be loaded. #70

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

amandasaurus
Copy link
Collaborator

If there is a problem initializing a map style, this patch will cause
the mapnik backend to exit (with 2). This causes the complete
tirex-backend-manager process to exit with 2. The previous behaviour was
for it to constantly attempt to initialize the map forevery

A mapnik style can fail to load for many reasons, such as missing
database tables. This change means incorrectly set up servers can be
detected quicker.

If there is a problem initializing a map style, this patch will cause
the mapnik backend to exit (with 2). This causes the complete
tirex-backend-manager process to exit with 2. The previous behaviour was
for it to constantly attempt to initialize the map forevery

A mapnik style can fail to load for many reasons, such as missing
database tables. This change means incorrectly set up servers can be
detected quicker.
…caused by bad config)

Currently systemd will constantly try to restart tirex-backend-manager
if it fails, forever and every. This change makes systemd not try to
restart iff tirex-backend-manager exits with exit status 2. Exit 2 can
happen in the last commit.
@amandasaurus
Copy link
Collaborator Author

I've done some (but not a lot) of real world testing of this patch. I'd appreciate feedback from others about the code. I am not very good at C++.

@amandasaurus amandasaurus marked this pull request as ready for review February 4, 2025 09:26
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 this pull request may close these issues.

1 participant