netdata.service.v235.in 960 B

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