mirror of
https://github.com/netdata/netdata.git
synced 2025-04-27 14:16:20 +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
|
Description=Real time performance monitoring
|
||||||
|
|
||||||
# append here other services you want netdata to wait for them to start
|
# 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]
|
[Service]
|
||||||
LogNamespace=netdata
|
LogNamespace=netdata
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
Description=Real time performance monitoring
|
Description=Real time performance monitoring
|
||||||
|
|
||||||
# append here other services you want netdata to wait for them to start
|
# 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]
|
[Service]
|
||||||
LogNamespace=netdata
|
LogNamespace=netdata
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue