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

pidfile=/run/influxdb.pid
start_stop_daemon_args="--user influxdb --stderr /var/log/influxdb/influxdb.log"
command=/usr/sbin/influxd
command_args="${EXTRA_OPTS}"
command_background="yes"

depend() {
	need net
	after firewall
}

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