aboutsummaryrefslogtreecommitdiffstats
path: root/community/influxdb/influxdb.initd
blob: ad9b351003f9e156fdf54498df8658d382a2a4a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/sbin/openrc-run

pidfile=/run/$RC_SVCNAME.pid
command=/usr/sbin/influxd
command_args="${INFLUXDB_OPTS}"
command_background="yes"
command_user=influxdb:influxdb

depend() {
	need net
	after firewall
}

start_pre() {
	checkpath -d -o influxdb:influxdb -m755 /var/lib/influxdb
}