1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 20:25:28 +03:00
aports/testing/vault/vault.initd
Gennady Feldman 1021d17306 testing/vault: upgrade to 0.6.3 and fix runscript
I had issues with service start in my testing. It would assume that
the service started and then report that it crashed (instead of
start failed).

In my setup I setup "consul" service as backend. So if "consul" is not
running vault should fail to start.
2016-12-15 17:24:01 +01:00

19 lines
485 B
Text

#!/sbin/openrc-run
VAULT_LOG_FILE="/var/log/${SVCNAME}.log"
description="Vault is a tool for securely accessing secrets"
command=/usr/sbin/${SVCNAME}
command_args="${vault_opts}"
command_background="true"
start_stop_daemon_args="-w 100 --user ${SVCNAME}:${SVCNAME} --stdout $VAULT_LOG_FILE --stderr $VAULT_LOG_FILE"
pidfile="/run/${SVCNAME}.pid"
start_pre() {
checkpath -f -m 0644 -o ${SVCNAME}:${SVCNAME} "$VAULT_LOG_FILE"
}
depend() {
need net
after firewall
}