Skip to content

Instantly share code, notes, and snippets.

@marylly
Created June 24, 2018 20:24
Show Gist options
  • Save marylly/a6abb0f98bf2a1eaa30d55cd93380055 to your computer and use it in GitHub Desktop.
Save marylly/a6abb0f98bf2a1eaa30d55cd93380055 to your computer and use it in GitHub Desktop.
Vault OpenRC service
#!/sbin/openrc-run
depend() {
need localmount
after net
}
start() {
ebegin "Starting Vault"
start-stop-daemon --background --start --exec /go/bin/vault -- server -config /go/src/github.com/hashicorp/vault/vault.json -address=http://127.0.0.1:8200 -log-level=DEBUG -tls-skip-verify
eend $?
}
stop() {
ebegin "Stopping Vault"
start-stop-daemon --stop --exec /go/bin/vault -- leave
eend $?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment