summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFederico Ceratto <federico.ceratto@gmail.com>2016-12-23 16:07:57 +0000
committerFederico Ceratto <federico.ceratto@gmail.com>2016-12-23 16:07:57 +0000
commit1aea04a9a54244017acedeacbe17769b6ddbc671 (patch)
tree6c3c798597f6be14c1c33dfeb3a50f43ba7f541a
parentRelease v. 1.4.0+dfsg-1 to Unstable (diff)
downloadnetdata-1aea04a9a54244017acedeacbe17769b6ddbc671.tar.xz
netdata-1aea04a9a54244017acedeacbe17769b6ddbc671.zip
Fix initfile
-rw-r--r--debian/netdata.init5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/netdata.init b/debian/netdata.init
index 39f7858ff..3c2335800 100644
--- a/debian/netdata.init
+++ b/debian/netdata.init
@@ -34,6 +34,11 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin
DESC="the netdata daemon"
PIDFILE=/var/run/netdata/netdata.pid
DEFAULTSFILE=/etc/default/$NAME
+CONF_FNAME=/etc/netdata/netdata.conf
+
+# Include defaults if available
+if [ -r $DEFAULTSFILE ] ; then
+ . $DEFAULTSFILE
case "$1" in
start)