0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-14 09:38:34 +00:00

systemd: start netdata after network is online ()

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
This commit is contained in:
Konstantin Shalygin 2024-06-17 14:37:51 +03:00 committed by GitHub
parent c09373fe61
commit de9acbb435
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -3,7 +3,8 @@
Description=Real time performance monitoring
# append here other services you want netdata to wait for them to start
After=network.target
After=network.target network-online.target nss-lookup.target
Wants=network-online.target nss-lookup.target
[Service]
LogNamespace=netdata

View file

@ -3,7 +3,8 @@
Description=Real time performance monitoring
# append here other services you want netdata to wait for them to start
After=network.target
After=network.target network-online.target nss-lookup.target
Wants=network-online.target nss-lookup.target
[Service]
LogNamespace=netdata