summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAmish <3330468+amishmm@users.noreply.github.com>2020-04-27 07:23:38 +0530
committerGitHub <noreply@github.com>2020-04-27 11:53:38 +1000
commit24e3b4fdd5625afc31e98359501d0f2df7fbb366 (patch)
tree0cfb3c85513a47b076e273ee503c8b08f46dbef0 /system
parent60c3ad25140c70a37de9950a8a8adafb0ad1ed80 (diff)
bind to should be in [web] section and update netdata.service.v235.in too (#8454)
* Update netdata.service.v235.in too Increase timeout for systemd service shutdown to give time to flush the db. When changes are made to netdata.service.in similar changes should be made to netdata.service.v235.in too. * bind to should be in [web] section See documentation: https://docs.netdata.cloud/web/server/
Diffstat (limited to 'system')
-rw-r--r--system/netdata.conf6
-rw-r--r--system/netdata.service.v235.in2
2 files changed, 4 insertions, 4 deletions
diff --git a/system/netdata.conf b/system/netdata.conf
index b3c2b2c68f..6341fcaf6f 100644
--- a/system/netdata.conf
+++ b/system/netdata.conf
@@ -16,9 +16,6 @@
# the default database size - 1 hour
history = 3600
- # by default do not expose the netdata port
- bind to = localhost
-
# some defaults to run netdata with least priority
process scheduling policy = idle
OOM score = 1000
@@ -26,3 +23,6 @@
[web]
web files owner = root
web files group = netdata
+
+ # by default do not expose the netdata port
+ bind to = localhost
diff --git a/system/netdata.service.v235.in b/system/netdata.service.v235.in
index fc0e245c5a..664c583f3a 100644
--- a/system/netdata.service.v235.in
+++ b/system/netdata.service.v235.in
@@ -21,7 +21,7 @@ EnvironmentFile=-/etc/default/netdata
ExecStart=/usr/sbin/netdata -D $EXTRA_OPTS
# saving a big db on slow disks may need some time
-TimeoutStopSec=60
+TimeoutStopSec=150
# restart netdata if it crashes
Restart=on-failure