Skip to content

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.

@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
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.
@woodpeck woodpeck merged commit d93c0bb into openstreetmap:main Feb 18, 2025
@amandasaurus amandasaurus deleted the fail-on-bad-map branch March 11, 2025 16:13
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.

2 participants