mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
[your user] to YOUR_USER (#7724)
please check, I am not sure if it is the same variable!
This commit is contained in:
parent
b169398e8f
commit
8454ba5b34
@ -89,29 +89,29 @@ $ 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.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo systemctl status home-assistant@[your user]
|
$ sudo systemctl status home-assistant@YOUR_USER
|
||||||
● home-assistant@fab.service - Home Assistant for [your user]
|
● home-assistant@fab.service - Home Assistant for YOUR_USER
|
||||||
Loaded: loaded (/etc/systemd/system/home-assistant@[your user].service; enabled; vendor preset: disabled)
|
Loaded: loaded (/etc/systemd/system/home-assistant@YOUR_USER.service; enabled; vendor preset: disabled)
|
||||||
Active: active (running) since Sat 2016-03-26 12:26:06 CET; 13min ago
|
Active: active (running) since Sat 2016-03-26 12:26:06 CET; 13min ago
|
||||||
Main PID: 30422 (hass)
|
Main PID: 30422 (hass)
|
||||||
CGroup: /system.slice/system-home\x2dassistant.slice/home-assistant@[your user].service
|
CGroup: /system.slice/system-home\x2dassistant.slice/home-assistant@YOUR_USER.service
|
||||||
├─30422 /usr/bin/python3 /usr/bin/hass
|
├─30422 /usr/bin/python3 /usr/bin/hass
|
||||||
└─30426 /usr/bin/python3 /usr/bin/hass
|
└─30426 /usr/bin/python3 /usr/bin/hass
|
||||||
[...]
|
[...]
|
||||||
@ -120,17 +120,17 @@ $ 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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user