aboutsummaryrefslogtreecommitdiffstats
path: root/testing/vault/vault.initd
blob: b334546df912325b23d8d0844cd9b502147e2964 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/sbin/openrc-run

VAULT_LOG_FILE="/var/log/${SVCNAME}.log"

command=/usr/sbin/${SVCNAME}
command_args="${vault_opts}"
command_background="true"
start_stop_daemon_args="--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
}