1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/influxdb/influxdb.initd
2020-12-14 20:59:05 +00:00

16 lines
312 B
Text

#!/sbin/openrc-run
pidfile=/run/$RC_SVCNAME.pid
command=/usr/sbin/influxd
command_args="${INFLUXDB_OPTS}"
command_background="yes"
command_user="${command_user:-influxdb:influxdb}"
depend() {
need net
after firewall
}
start_pre() {
checkpath -d -o "$command_user" -m755 "${data_path:-/var/lib/influxdb}"
}