@cryptotaxi247 / netdata-1 / commits / de9acbb43

systemd: start `netdata` after network is online (#17906)

systemd: start netdata after network is online Added network-online.target conditions, because currently netdata can start before all IP for bind is avail ``` Jun 15 19:42:03 netdata.example.com netdata[496]: LISTENER: IPv4 bind() on ip '192.168.250.1' port 19999, socktype 1 failed. Jun 15 19:42:03 netdata.example.com netdata[496]: LISTENER: Cannot bind to ip '192.168.250.1', port 19999 ``` P.S.: `wants` is a weak (not hard) dependency

Konstantin Shalygin committed Jun 17, 2024 at 14:37 UTC de9acbb435e3b238d3da8f80ef270718533027d5
2 files changed +4 -2
system/systemd/netdata.service.in
+2 -1
@@ -3,7 +3,8 @@
3 Description=Real time performance monitoring
4
5 # append here other services you want netdata to wait for them to start
6 -After=network.target
6 +After=network.target network-online.target nss-lookup.target
7 +Wants=network-online.target nss-lookup.target
8
9 [Service]
10 LogNamespace=netdata
system/systemd/netdata.service.v235.in
+2 -1
@@ -3,7 +3,8 @@
3 Description=Real time performance monitoring
4
5 # append here other services you want netdata to wait for them to start
6 -After=network.target
6 +After=network.target network-online.target nss-lookup.target
7 +Wants=network-online.target nss-lookup.target
8
9 [Service]
10 LogNamespace=netdata