blob: 165a6c5694563f3b523df696931eeb2d02bb018b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
description="Scalable datastore for metrics, events, and real-time analytics"
user="influxdb:influxdb"
logfile="/var/log/influxdb/influxd.log"
start_stop_daemon_args="--user $user --stdout $logfile --stderr $logfile"
command="/usr/bin/influxd"
command_args="
-config /etc/influxdb/influxdb.conf
${INFLUXD_OPTS}
"
command_background=yes
pidfile=/run/influxdb.pid
depend() {
need net
after bootmisc
}
start_pre() {
checkpath --file --owner $user --mode 0644 $logfile
checkpath --directory --owner $user --mode 0755 /var/lib/influxdb
}
|