Add hint on how to restart on crash (#8610)

I was experiencing crashes, when I requested too many data points for plotting. So, this configuration makes my system come back automatically.
This commit is contained in:
akloeckner 2019-02-17 11:29:22 +01:00 committed by Fabian Affolter
parent c851605792
commit b9e7f41b76

View File

@ -134,3 +134,11 @@ When working on Home Assistant, you can easily restart the system and then watch
$ sudo systemctl restart home-assistant@YOUR_USER && sudo journalctl -f -u home-assistant@YOUR_USER $ sudo systemctl restart home-assistant@YOUR_USER && sudo journalctl -f -u home-assistant@YOUR_USER
``` ```
### {% linkable_title Automatically restarting Home Assistant on failure %}
If you want to restart the Home Assistant service automatically after a crash, add the following lines to the `[Service]` section of your unit file:
```
Restart=on-failure
RestartSec=5s
```