Search code examples
hashicorp-vault

turn off hashicorp vault server dev


I am messing around with and testing Hashicorp Vault. I am starting a vault server in dev mode within the mac terminal:

vault server -dev

Accordingly, I get some data if I do

vault status

However, if I want to turn the server off and start it again, I have to restart the computer. Closing the mac shell will not do the trick, as I assume that the server continues to live in the mac memory. I have googled a lot to see if there is a simple command to stop the dev server but found none.

Help is much appreciated.


Solution

  • If you ctrl+c the proccess, vault will terminate and you will lose all the data you stored in there. No need to restart the computer.

    If that doesn’t work, you can kill it with pkill -9 vault