servers/roles/influxdb/files/influxdb.initd

17 lines
361 B
Plaintext
Raw Permalink Normal View History

2024-09-27 14:14:10 +00:00
#!/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}"
}