Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Create a new systemd service
- sudo nano /etc/systemd/system/home-assistant@homeassistant.service
- #copy the code below and insert it by right clicking in the SSH prompt
- [Unit]
- Description=Home Assistant
- After=network.target
- [Service]
- Type=simple
- User=homeassistant
- ExecStart=/srv/homeassistant/bin/hass -c "/home/homeassistant/.homeassistant"
- [Install]
- WantedBy=multi-user.target
- #enable the new service
- sudo systemctl --system daemon-reload
- sudo systemctl enable home-assistant@homeassistant
- sudo systemctl start home-assistant@homeassistant
- #To check status of Home Assistans
- sudo systemctl status home-assistant@homeassistant
- #Reboot your system to see that autostart works
- sudo reboot
Advertisement
Add Comment
Please, Sign In to add comment