17 lines
361 B
Plaintext
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}"
|
|
}
|