Install Vault as a windows service

793 views
Skip to first unread message

Sagi Tsofan

unread,
Mar 3, 2019, 3:00:19 PM3/3/19
to Vault
Hey,

Is there any way for installing Vault as a Window service?

I tried to create a Window service using this command:

sc create "Vault" binpath= "path_to_valut\vault.exe server -config path_to_vault\cfg.hcl"

But when i tries to start the service this message shows:

The Vault service failed to start due to the following error: 
The service did not respond to the start or control request in a timely fashion.

The reason for this error is becouse each service that is installed in the services needs to implement start, stop interface otherwise it will not stared.

Any idea how to that ?

Carlos Vitor Barros

unread,
Mar 5, 2019, 3:56:43 AM3/5/19
to vault...@googlegroups.com
Hi,

Vault is not a windows service. It is just a plain Go binary. If you want to run this a Windows Service, you can use some kind of wrapper like this:

It's the same for JAVA and any other binary that was not compiled meant to have Windows Service bindings.

Regards,



--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/58a97854-c644-4d17-ae02-56462f4d8149%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sagi Tsofan

unread,
Mar 5, 2019, 4:01:12 AM3/5/19
to Vault
Thank you.
I wrapped the executable with NSSM process and it works great.
Reply all
Reply to author
Forward
0 new messages