servers/roles/influxdb/files/influxdb.initd
2024-09-27 16:14:10 +02:00

17 lines
361 B
Plaintext

#!/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}"
}