aports/testing/kumactl/kuma-dp.initd
Hoang Nguyen 3f651dc89c testing/kumactl: upgrade to 2.5.0
Add `kuma-cp`, `kuma-dp` and doc subpackages
2023-12-10 10:58:09 +00:00

28 lines
553 B
Bash

#!/sbin/openrc-run
: ${command_user:="kuma:kuma"}
: ${envoypath:="/usr/bin/envoy"}
name=kuma-dp
description="Kuma data plane proxy"
command="/usr/bin/kuma-dp"
command_args="
run
${envoypath:+"--binary-path \"$envoypath\""}
${logfile:+"--log-output-path \"$logfile\""}
${command_args:-}
"
command_background="yes"
pidfile="/run/$RC_SVCNAME.pid"
depend() {
need net
after firewall
}
start_pre() {
checkpath -d -o "$command_user" /var/lib/kuma /var/log/kuma
if [ -n "$logfile" ]; then
checkpath -f -m 640 -o "$command_user" "$logfile"
fi
}