aboutsummaryrefslogtreecommitdiffstats
path: root/testing/grafana/grafana.initd
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-08-11 21:43:25 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-08-15 18:08:54 -0300
commit7b58edb897f944e0070a5fa7ea2071f305a5d53e (patch)
tree3a88dcb4cddd536268143b9579b9d659a598c567 /testing/grafana/grafana.initd
parent8259ebfa0f7761b17254c107ee93b61895a9cffe (diff)
downloadaports-7b58edb897f944e0070a5fa7ea2071f305a5d53e.tar.gz
aports-7b58edb897f944e0070a5fa7ea2071f305a5d53e.tar.bz2
aports-7b58edb897f944e0070a5fa7ea2071f305a5d53e.tar.xz
testing/grafana: use supervise-daemon
Diffstat (limited to 'testing/grafana/grafana.initd')
-rw-r--r--testing/grafana/grafana.initd8
1 files changed, 6 insertions, 2 deletions
diff --git a/testing/grafana/grafana.initd b/testing/grafana/grafana.initd
index a3458f9129..ab903b04e4 100644
--- a/testing/grafana/grafana.initd
+++ b/testing/grafana/grafana.initd
@@ -1,10 +1,14 @@
#!/sbin/openrc-run
+supervisor=supervise-daemon
+
+name="Grafana"
+description="Metrics Dashboard and Graph Editor"
+
command="/usr/sbin/grafana-server"
command_args="$GRAFANA_OPTS"
-command_background=yes
+
command_user=grafana:grafana
-pidfile="/run/$RC_SVCNAME.pid"
depend() {
need net