1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-17 22:15:17 +03:00
aports/community/alloy/alloy.initd

18 lines
399 B
Bash
Executable file

#!/sbin/openrc-run
name="alloy"
description="OpenTelemetry Collector distribution with programmable pipelines"
: ${command_user:="alloy"}
: ${STORAGE:="/var/lib/alloy"}
: ${CFGFILE:="/etc/alloy/config.alloy"}
command="/usr/bin/alloy"
command_args="run --storage.path $STORAGE $command_args $CFGFILE"
command_background="yes"
pidfile="/run/$RC_SVCNAME.pid"
depend() {
need net
after firewall
}