Update systemd.markdown

I found that After=network.target was not robust enough for Auto-discovery to work correctly and find devices on the network. I changed this to After=network-online.target to wait until the network was completely "up" before starting.
This commit is contained in:
caz0075 2017-11-21 09:53:26 +10:00 committed by GitHub
parent 6a49dae9b0
commit 2da586c0b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ A service file is needed to control Home Assistant with `systemd`. The template
``` ```
[Unit] [Unit]
Description=Home Assistant Description=Home Assistant
After=network.target After=network-online.target
[Service] [Service]
Type=simple Type=simple
@ -46,7 +46,7 @@ If you've setup Home Assistant in `virtualenv` following our [Python installatio
``` ```
[Unit] [Unit]
Description=Home Assistant Description=Home Assistant
After=network.target After=network-online.target
[Service] [Service]
Type=simple Type=simple