summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-08-22 22:01:43 +0300
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-08-22 22:01:43 +0300
commit221e7221ddc2fd68f5e15c3abb676b3791367904 (patch)
tree8a10e6e05b0ccea0774cabba4ddbd8dc2dcf8666 /system
parent277441e40d05a28d6cd74ff81e91e5c24b86268a (diff)
properly set negative out-of-memory (OOM) scores; #2549
Diffstat (limited to 'system')
-rw-r--r--system/netdata.service.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/netdata.service.in b/system/netdata.service.in
index d3b1d883d5..0239fc8e80 100644
--- a/system/netdata.service.in
+++ b/system/netdata.service.in
@@ -8,6 +8,12 @@ User=netdata
Group=netdata
ExecStart=@sbindir_POST@/netdata -D
+# The minimum netdata Out-Of-Memory (OOM) score.
+# netdata (via [global].OOM score in netdata.conf) can only increase the value set here.
+# To decrease it, set the minimum here and set the same or a higher value in netdata.conf.
+# Valid values: -1000 (never kill netdata) to 1000 (always kill netdata).
+OOMScoreAdjust=0
+
# saving a big db on slow disks may need some time
TimeoutStopSec=60