blob: 2ed3152b34835973a987328c1288827e1c8b99dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/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
}
|