Created
June 24, 2018 20:24
-
-
Save marylly/a6abb0f98bf2a1eaa30d55cd93380055 to your computer and use it in GitHub Desktop.
Vault OpenRC service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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