Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Learner's question - how do I get the CLI to survive a reboot on Linux (maybe a systemd service file)? #1574

Closed
bouton opened this issue Nov 11, 2024 · 2 comments
Labels

Comments

@bouton
Copy link

bouton commented Nov 11, 2024

Sorry - new to Linux and trying this out.

I have Martin up and running displaying all my tiles with maplibre. Lovely.

To keep it running in the background I run it with an ampersand at the end of the command
eg martin /path/etc &

But a reboot requires me to re-enter the command.

I have read up that maybe I can run it as a systemd service. Is this possible?

Do you have an example service file and/or some suggestions? Thanks

@CommanderStorm
Copy link
Collaborator

CommanderStorm commented Nov 15, 2024

Deploying this as a systemd service is not quite the simplest solution imo (might be biased).
I would suggest looking into docker instead. Much simpler than the systemd docs.

If you still want to go via the systemd route, I would need a few additional pieces of information:

  • what are your datasources (affects what startup is blocked by)
  • if using the --auto-bounds parameter: what is the datasources size and is extent indexed (affects startup time)
  • when do you need it to start up (affects what startup is blocked by; immediately after networking, or is your system constrained on resources and another service start first. martins resource usage is low => should not affect you much if at all)

@bouton
Copy link
Author

bouton commented Nov 16, 2024 via email

@maplibre maplibre locked and limited conversation to collaborators Nov 16, 2024
@CommanderStorm CommanderStorm converted this issue into discussion #1586 Nov 16, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

2 participants