mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 20:25:28 +03:00
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.
19 lines
485 B
Text
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
|
|
}
|