r/homeassistant: Wait for network to start

Although Home Assistant itself will start fine if the network is not yet
available, some integrations will not.  Notably, the Matrix integration
will fail to load if it cannot contact the homeserver when it is first
initialized.  To avoid this problem, we can just delay starting Home
Assistant until the network is available.
ntfy
Dustin 2021-10-10 15:50:28 -05:00
parent 1f9e13a33b
commit 6f9ff86788
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,8 @@
# vim: set ft=systemd :
[Unit]
Description=Home Assistant
After=network-online.target
Wants=network-online.target
[Service]
Type=notify