Add influxdb role

This commit is contained in:
Timotej Lazar 2024-09-27 16:14:10 +02:00
parent 1f5d2f6238
commit d0f3d828df
5 changed files with 89 additions and 0 deletions

View file

@ -0,0 +1,2 @@
reporting-disabled = true
http-bind-address = "localhost:8087"

View file

@ -0,0 +1,16 @@
#!/sbin/openrc-run
command="influxd"
command_background="yes"
command_user="${command_user:-influxdb:influxdb}"
directory="${data_path:-/var/lib/influxdb}"
pidfile="/run/$RC_SVCNAME.pid"
start_stop_daemon_args="--stdout-logger /usr/bin/logger"
depend() {
use logger
}
start_pre() {
checkpath -d -o "$command_user" -m755 "${data_path:-/var/lib/influxdb}"
}