aboutsummaryrefslogtreecommitdiffstats
path: root/community/vault/vault.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/vault/vault.initd')
-rw-r--r--community/vault/vault.initd18
1 files changed, 10 insertions, 8 deletions
diff --git a/community/vault/vault.initd b/community/vault/vault.initd
index 2ed3152b34..bb6c28f4a1 100644
--- a/community/vault/vault.initd
+++ b/community/vault/vault.initd
@@ -1,19 +1,21 @@
#!/sbin/openrc-run
-VAULT_LOG_FILE="/var/log/${SVCNAME}.log"
+supervisor=supervise-daemon
+name="Vault server"
description="Vault is a tool for securely accessing secrets"
-command=/usr/sbin/${SVCNAME}
+
+VAULT_LOG_FILE="/var/log/${RC_SVCNAME}.log"
+
+command=/usr/sbin/${RC_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"
+command_user="${RC_SVCNAME}:${RC_SVCNAME}"
start_pre() {
- checkpath -f -m 0644 -o ${SVCNAME}:${SVCNAME} "$VAULT_LOG_FILE"
+ checkpath -f -m 0644 -o "$command_user" "$VAULT_LOG_FILE"
}
depend() {
- need net
- after firewall
+ need net
+ after firewall
}