netdata.service.v235.in 1.0 KB

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