mirror of
https://github.com/netdata/netdata.git
synced 2025-04-14 09:38:34 +00:00
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
This commit is contained in:
parent
c09373fe61
commit
de9acbb435
2 changed files with 4 additions and 2 deletions
system/systemd
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue