mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-26 02:37:03 +00:00
remove $ marks from code lines for copy/pasting (#12268)
* remove $ marks from code lines for copy/pasting
* ✏️ Fix standards
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
8d9526d468
commit
0f4435baeb
@ -77,24 +77,24 @@ WantedBy=multi-user.target
|
|||||||
You need to reload `systemd` to make the daemon aware of the new configuration.
|
You need to reload `systemd` to make the daemon aware of the new configuration.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo systemctl --system daemon-reload
|
sudo systemctl --system daemon-reload
|
||||||
```
|
```
|
||||||
|
|
||||||
To have Home Assistant start automatically at boot, enable the service.
|
To have Home Assistant start automatically at boot, enable the service.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo systemctl enable home-assistant@YOUR_USER
|
sudo systemctl enable home-assistant@YOUR_USER
|
||||||
```
|
```
|
||||||
|
|
||||||
To disable the automatic start, use this command.
|
To disable the automatic start, use this command.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo systemctl disable home-assistant@YOUR_USER
|
sudo systemctl disable home-assistant@YOUR_USER
|
||||||
```
|
```
|
||||||
|
|
||||||
To start Home Assistant now, use this command.
|
To start Home Assistant now, use this command.
|
||||||
```bash
|
```bash
|
||||||
$ sudo systemctl start home-assistant@YOUR_USER
|
sudo systemctl start home-assistant@YOUR_USER
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also substitute the `start` above with `stop` to stop Home Assistant, `restart` to restart Home Assistant, and 'status' to see a brief status report as seen below.
|
You can also substitute the `start` above with `stop` to stop Home Assistant, `restart` to restart Home Assistant, and 'status' to see a brief status report as seen below.
|
||||||
@ -114,18 +114,18 @@ $ sudo systemctl status home-assistant@YOUR_USER
|
|||||||
To get Home Assistant's logging output, simple use `journalctl`.
|
To get Home Assistant's logging output, simple use `journalctl`.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo journalctl -f -u home-assistant@YOUR_USER
|
sudo journalctl -f -u home-assistant@YOUR_USER
|
||||||
```
|
```
|
||||||
|
|
||||||
Because the log can scroll quite quickly, you can select to view only the error lines:
|
Because the log can scroll quite quickly, you can select to view only the error lines:
|
||||||
```bash
|
```bash
|
||||||
$ sudo journalctl -f -u home-assistant@YOUR_USER | grep -i 'error'
|
sudo journalctl -f -u home-assistant@YOUR_USER | grep -i 'error'
|
||||||
```
|
```
|
||||||
|
|
||||||
When working on Home Assistant, you can easily restart the system and then watch the log output by combining the above commands using `&&`
|
When working on Home Assistant, you can easily restart the system and then watch the log output by combining the above commands using `&&`
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ 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
|
||||||
```
|
```
|
||||||
|
|
||||||
### Automatically restarting Home Assistant on failure
|
### Automatically restarting Home Assistant on failure
|
||||||
|
Loading…
x
Reference in New Issue
Block a user