Skip to content

Systemd unitfile jetstream example #818

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

Closed

Conversation

pritster5
Copy link

Wrote a simple example for how to run NATS as a systemd service that allows it to persist through system restarts and some application failures. This is useful if a NATS JetStream is being used as a persistent queue that needs to remain available for consumers at all times (or close to it).

@gcolliso gcolliso requested a review from Jarema March 18, 2025 14:22
@alexbozhenko
Copy link
Contributor

Hi, @pritster5
Thanks for opening a PR!
We have an example unit file in the server repo, that we mention here: https://docs.nats.io/running-a-nats-service/introduction/running#running-nats-server-as-a-systemd-service-on-linux

Please take a look and see if your suggestions can be added there instead?

@pritster5
Copy link
Author

Ah thanks for pointing me to that, didn't know of it when I opened this PR. That example looks even better than mine; closing this PR.

@pritster5 pritster5 closed this Apr 22, 2025
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