aboutsummaryrefslogtreecommitdiff
path: root/admin/netdata/files/netdata.init
diff options
context:
space:
mode:
authorSebastian Careba <nitroshift@yahoo.com>2016-05-12 11:43:49 +0300
committerEtienne CHAMPETIER <champetier.etienne@gmail.com>2016-07-02 10:01:15 +0000
commitdad2cd4f4bbbb6a3c2a35ecb5787fe8b2166580f (patch)
tree8d4957bce93a41c6e0486a27ccf7b5eda0bd5d58 /admin/netdata/files/netdata.init
parent2bdc3323fe2ada09e16ebc3b712d7278f328be73 (diff)
netdata: add new package
Netdata (https://github.com/firehol/netdata) is a real-time performance monitoring tool. This submission uses the current Git prerelease, as the latest stable (1.1.0)doesn't build cleanly. The default configuration makes a few changes for OpenWrt: - access log is disabled by default; too verbose for the circular syslog buffer, and logging to /tmp is risky memory-wise. Some sort of external device would be ideal for this. - error and debug logs are sent to OpenWrt's syslog - history and frequency times are halved to reduce memory usage, as recommended in the netdata wiki - external plugins are disabled to eliminate the dependency on bash and node.js. Those could be installed from OpenWrt packages if you wish to enable that functionality. All of those files are still present in the package. The installed size could be reduced by eliminating those files first. Signed-off-by: Claudio Leite <leitec@staticky.com> Signed-off-by: Sebastian Careba <nitroshift@yahoo.com> [squash commits, change PKG_VERSION] Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
Diffstat (limited to 'admin/netdata/files/netdata.init')
-rw-r--r--admin/netdata/files/netdata.init11
1 files changed, 11 insertions, 0 deletions
diff --git a/admin/netdata/files/netdata.init b/admin/netdata/files/netdata.init
new file mode 100644
index 000000000..448e56d91
--- /dev/null
+++ b/admin/netdata/files/netdata.init
@@ -0,0 +1,11 @@
+#!/bin/sh /etc/rc.common
+
+START=99
+
+start() {
+ service_start /usr/sbin/netdata
+}
+
+stop() {
+ service_stop /usr/sbin/netdata
+}