netdata.service.v235.in 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # SPDX-License-Identifier: GPL-3.0-or-later
  2. [Unit]
  3. Description=infrastructure monitoring and troubleshooting, transformed
  4. # append here other services you want netdata to wait for them to start
  5. After=network.target network-online.target nss-lookup.target
  6. Wants=network-online.target nss-lookup.target
  7. [Service]
  8. LogNamespace=netdata
  9. Type=simple
  10. User=root
  11. Group=netdata
  12. EnvironmentFile=-/etc/default/netdata
  13. ExecStart=@sbindir_POST@/netdata -D $EXTRA_OPTS
  14. # saving a big db on slow disks may need some time
  15. TimeoutStopSec=150
  16. # restart netdata if it crashes
  17. Restart=on-failure
  18. RestartSec=30
  19. # Valid policies: other (the system default) | batch | idle | fifo | rr
  20. # To give netdata the max priority, set CPUSchedulingPolicy=rr and CPUSchedulingPriority=99
  21. CPUSchedulingPolicy=batch
  22. # This sets the scheduling priority (for policies: rr and fifo).
  23. # Priority gets values 1 (lowest) to 99 (highest).
  24. #CPUSchedulingPriority=1
  25. # For scheduling policy 'other' and 'batch', this sets the lowest niceness of netdata (-20 highest to 19 lowest).
  26. Nice=0
  27. [Install]
  28. WantedBy=multi-user.target