netdata.service.v235.in 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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 httpd.service squid.service nfs-server.service mysqld.service mysql.service named.service postfix.service chronyd.service
  6. [Service]
  7. Type=simple
  8. User=root
  9. EnvironmentFile=-/etc/default/netdata
  10. ExecStart=@sbindir_POST@/netdata -D $EXTRA_OPTS
  11. # saving a big db on slow disks may need some time
  12. TimeoutStopSec=150
  13. # restart netdata if it crashes
  14. Restart=on-failure
  15. RestartSec=30
  16. # Valid policies: other (the system default) | batch | idle | fifo | rr
  17. # To give netdata the max priority, set CPUSchedulingPolicy=rr and CPUSchedulingPriority=99
  18. CPUSchedulingPolicy=batch
  19. # This sets the scheduling priority (for policies: rr and fifo).
  20. # Priority gets values 1 (lowest) to 99 (highest).
  21. #CPUSchedulingPriority=1
  22. # For scheduling policy 'other' and 'batch', this sets the lowest niceness of netdata (-20 highest to 19 lowest).
  23. Nice=0
  24. [Install]
  25. WantedBy=multi-user.target