Add influxdb role
This commit is contained in:
parent
1f5d2f6238
commit
d0f3d828df
5 changed files with 89 additions and 0 deletions
2
roles/influxdb/files/config.toml
Normal file
2
roles/influxdb/files/config.toml
Normal file
|
@ -0,0 +1,2 @@
|
|||
reporting-disabled = true
|
||||
http-bind-address = "localhost:8087"
|
16
roles/influxdb/files/influxdb.initd
Normal file
16
roles/influxdb/files/influxdb.initd
Normal 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}"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue