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