diff --git a/source/_docs/autostart/systemd.markdown b/source/_docs/autostart/systemd.markdown index ff328924626..0b15799e1ee 100644 --- a/source/_docs/autostart/systemd.markdown +++ b/source/_docs/autostart/systemd.markdown @@ -36,6 +36,26 @@ WantedBy=multi-user.target EOF' ``` +For Ubunt 16.04 use this commands. Notice that files are saved in a slightly diffrent path + +```bash +$ su -c 'cat <> /lib/systemd/system/home-assistant.service +[Unit] +Description=Home Assistant +After=network.target + +[Service] +Type=simple +User=%i +ExecStart=/usr/local/bin/hass + +[Install] +WantedBy=multi-user.target +EOF' +``` + +``` sudo ln -s /lib/systemd/system/home-assistant.service /etc/systemd/system/home-assistant.service``` + If you've setup Home Assistant in `virtualenv` following our [python installation guide](https://home-assistant.io/getting-started/installation-virtualenv/) or [manual installation guide for raspberry pi](https://home-assistant.io/getting-started/installation-raspberry-pi/), the following template should work for you. ```