aboutsummaryrefslogtreecommitdiffstats
path: root/testing
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
parent8259ebfa0f7761b17254c107ee93b61895a9cffe (diff)
downloadaports-7b58edb897f944e0070a5fa7ea2071f305a5d53e.tar.bz2
aports-7b58edb897f944e0070a5fa7ea2071f305a5d53e.tar.xz
testing/grafana: use supervise-daemon
Diffstat (limited to 'testing')
-rw-r--r--testing/grafana/APKBUILD4
-rw-r--r--testing/grafana/grafana.initd8
2 files changed, 8 insertions, 4 deletions
diff --git a/testing/grafana/APKBUILD b/testing/grafana/APKBUILD
index b9b5a0dbb6..dd2ac339b5 100644
--- a/testing/grafana/APKBUILD
+++ b/testing/grafana/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Konstantin Kulikov <k.kulikov2@gmail.com>
pkgname=grafana
pkgver=6.3.0
-pkgrel=0
+pkgrel=1
_commit=830da0fda # git rev-parse --short HEAD
_stamp=1565095768 # git --no-pager show -s --format=%ct
pkgdesc="Open source, feature rich metrics dashboard and graph editor"
@@ -51,6 +51,6 @@ package() {
}
sha512sums="d1af9c662011ba667465cde456daed42786269c41a0d2233bf9758da56d0ecbe8b4a7433e55d87f85a419da26b5d15b1f2df57c565333f7b79fc6a3863f6edc6 grafana-6.3.0.tar.gz
-1d051e673c2904faf232f7cae790e69396504bddef3d8b7c892879eaf1a5906a566bb539d42f4d44b738dfa8eb37069a84b684c31cb93eb8d21e82a371ce1417 grafana.initd
+ab6e36b314728a95e1fbb27eb724d8d347fc1c06b26febc4650cb63d35eab18e38727a0dcc0165555c56150dad147d5d525af174e8718189b238f47f93a1147c grafana.initd
00bbd8e650c3dac7c3e92d7fbeb99265f4ef5f5a70876d551173eb2bfc8732f8d9c4e03ed5fb776e1e2e58a5e9778a09cc551e5a30b9c73b9f4051393fd10f4b grafana.confd
740df131d7e8897b30c53140e170c9a5a1d84d422d8ae395b244bb525d4416c4e5acae2c6e1c2baf2710fe8e7067f849fc2986f567640afef0f28a694f560f86 phantomjs"
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