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

feat: daemon mode #456

Closed
drev74 opened this issue May 6, 2022 · 5 comments
Closed

feat: daemon mode #456

drev74 opened this issue May 6, 2022 · 5 comments

Comments

@drev74
Copy link

drev74 commented May 6, 2022

Hello

I'm new to NATS and natscli. I'm running a NATS JetStream with nats server run --jetstream AJC.
I eventually need to log out from my VM, where I run this. This makes me drop the server.

Is there a way to run a nats server in a daemon mode? Smth like nats server run -d --jetstream AJC, where you normally specify -d to run in a daemon mode.

I'm not sure whether this is a documentation or a feature request.

@ripienaar
Copy link
Collaborator

For that you need to set up a nats-server instance perhaps in a container or kubernetes. The “nats server run” is specifically just for quick access to a local development environment that’s ephemeral.

See docs.nats.io

@drev74
Copy link
Author

drev74 commented May 7, 2022

Hi @ripienaar
Thanks for your advice. I was following this to run a nats-server.

However, there's still no option to run nats in a daemon mode. I wanna run it on a VM and purposely avoid Docker. How do I run nats on a bare metal in a daemon mode ?

@ripienaar
Copy link
Collaborator

Use the systemd units found here https://github.com/nats-io/nats-server/tree/main/util

@drev74
Copy link
Author

drev74 commented May 7, 2022

I found an old discussion on this here

@drev74
Copy link
Author

drev74 commented May 7, 2022

@ripienaar thanks for your advice. systemd does the job

@drev74 drev74 closed this as completed May 7, 2022
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