aboutsummaryrefslogtreecommitdiffstats
path: root/testing/influxdb/influxdb.initd
diff options
context:
space:
mode:
authorStefan Wagner <stw@bit-strickerei.de>2016-11-27 02:31:54 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2016-12-06 17:27:32 +0100
commit70a8fb4ee3a856defe4b6f260b445901347991f5 (patch)
tree7e3f1cae9c35ea42009112deb3ad6fc51b3724a6 /testing/influxdb/influxdb.initd
parent4dd9320140988c58abc574e73693fe399450d57c (diff)
downloadaports-70a8fb4ee3a856defe4b6f260b445901347991f5.tar.gz
aports-70a8fb4ee3a856defe4b6f260b445901347991f5.tar.bz2
aports-70a8fb4ee3a856defe4b6f260b445901347991f5.tar.xz
testing/influxdb: new aport
Diffstat (limited to 'testing/influxdb/influxdb.initd')
-rw-r--r--testing/influxdb/influxdb.initd16
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/influxdb/influxdb.initd b/testing/influxdb/influxdb.initd
new file mode 100644
index 0000000000..491e97d308
--- /dev/null
+++ b/testing/influxdb/influxdb.initd
@@ -0,0 +1,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
+}