aboutsummaryrefslogtreecommitdiffstats
path: root/testing/netdata
diff options
context:
space:
mode:
authorHenrik Riomar <henrik.riomar@gmail.com>2017-09-29 10:44:09 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2018-02-09 19:19:21 +0000
commit55693300e5062cde3ad5bb48b0033e559466f802 (patch)
tree89e77b4b7b69c06dc58b24b370afafcd01e559aa /testing/netdata
parentf46c003c5069e6751361d4041b9560604ecbad13 (diff)
downloadaports-55693300e5062cde3ad5bb48b0033e559466f802.tar.bz2
aports-55693300e5062cde3ad5bb48b0033e559466f802.tar.xz
testing/netdata: improve shutdown
Make sure it actually restarts (entually) even if a plugin does not stop.
Diffstat (limited to 'testing/netdata')
-rw-r--r--testing/netdata/APKBUILD4
-rw-r--r--testing/netdata/netdata.initd7
2 files changed, 8 insertions, 3 deletions
diff --git a/testing/netdata/APKBUILD b/testing/netdata/APKBUILD
index 52d68118f0..1d53b7c0f7 100644
--- a/testing/netdata/APKBUILD
+++ b/testing/netdata/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer:
pkgname=netdata
pkgver=1.9.0
-pkgrel=0
+pkgrel=1
pkgdesc="Real-time performance monitoring"
url="https://github.com/firehol/netdata"
license="GPL-3.0-or-later"
@@ -63,4 +63,4 @@ python() {
}
sha512sums="3766c8b86229545dee8fed3a43a5dd73ba36db9114b2418a6ceaaba15488edf792308be922dafed34026fd52166257fc27823ce0f6664696f79b33b93345f2b5 netdata-1.9.0.tar.xz
-2aaaee7010c24b3f52be8b01295f73ac6c38ac4d1b627e8b9227d03fe3b248b7157b1d5217edebd88ba461adc1ce89503520acd877b300e4503e75125f40da96 netdata.initd"
+0cc96162524bec0562e7ba0449d7d39ca6edd1928e2c1ac9f579a1fe5ea442f8ce670d04e84d2cac7c09843a9df7ed8151a6a3d2377713ffba4c86b43b8d9096 netdata.initd"
diff --git a/testing/netdata/netdata.initd b/testing/netdata/netdata.initd
index 79a3a9c55d..61cad7d002 100644
--- a/testing/netdata/netdata.initd
+++ b/testing/netdata/netdata.initd
@@ -1,7 +1,12 @@
#!/sbin/openrc-run
command=/usr/sbin/netdata
-command_args=""
pidfile=/run/netdata.pid
+command_args="-P ${pidfile}"
name="netdata"
description="Real-time performance monitoring"
+
+depend() {
+ need net
+ after apache2 squid nginx mysql named opensips hostapd postfix lm_sensors
+}