mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Create systemd.markdown (#2790)
This commit is contained in:
parent
b0b5618e85
commit
e2d68f265f
@ -22,7 +22,7 @@ If you want Home Assistant to be launched automatically, an extra step is needed
|
|||||||
|
|
||||||
- `ExecStart` contains the path to `hass` and this may vary. Check with `whereis hass` for the location.
|
- `ExecStart` contains the path to `hass` and this may vary. Check with `whereis hass` for the location.
|
||||||
- If running Home Assistant in a Python virtual environment or a Docker container, please skip to section below.
|
- If running Home Assistant in a Python virtual environment or a Docker container, please skip to section below.
|
||||||
- For most systems, the file is `/etc/systemd/system/home-assistant@[your user].service` with [your user] replaced by the user account that Home Assistant will run as - normally `homeassistant`. For Ubuntu 16.04, the file is `/lib/systemd/system/home-assistant.service` and requires running this command `sudo ln -s /lib/systemd/system/home-assistant.service /etc/systemd/system/home-assistant.service` after file is created.
|
- For most systems, the file is `/etc/systemd/system/home-assistant@[your user].service` with [your user] replaced by the user account that Home Assistant will run as - normally `homeassistant`. In particular, this is the case for Ubuntu 16.04.
|
||||||
- If unfamiliar with command-line text editors, `sudo nano -w [filename]` can be used with `[filename]` replaced with the full path to the file. Ex. `sudo nano -w /etc/systemd/system/home-assistant@[your user].service`. After text entered, press CTRL-X then press Y to save and exit.
|
- If unfamiliar with command-line text editors, `sudo nano -w [filename]` can be used with `[filename]` replaced with the full path to the file. Ex. `sudo nano -w /etc/systemd/system/home-assistant@[your user].service`. After text entered, press CTRL-X then press Y to save and exit.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user