You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am currently trying to run a nats-server as a windows service with nats flags.
I can start the nats-server.exe manually from the command line with the config flag without problems.
Also registering the nats-server as a service with sc.exe create nats-server "C:\NATS\nats-server.exe" and then starting it works fine.
But obviously doesn't allow me to add flags.
As visible in this screenshot I can add flags in the service start parameter field in the services administrative tool and the nats-server service will start. The problem is, this doesn't allow automatic restarts with the flags set.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I am currently trying to run a nats-server as a windows service with nats flags.
I can start the nats-server.exe manually from the command line with the config flag without problems.
Also registering the nats-server as a service with
sc.exe create nats-server "C:\NATS\nats-server.exe"
and then starting it works fine.But obviously doesn't allow me to add flags.
As visible in this screenshot I can add flags in the service start parameter field in the services administrative tool and the nats-server service will start. The problem is, this doesn't allow automatic restarts with the flags set.
If I add the flags to the binPath like described here (https://docs.nats.io/running-a-nats-service/introduction/windows_srv)
I get an Error 1053 when trying to start the service.
I tried the following version for the path:
Any ideas where I am making a mistake?
This post on so (https://stackoverflow.com/a/42821528) suggests these parameters get passed differently to the program. Could this be an issue here?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions