From 943c8863d3ba766c8386c83a0c001df847300425 Mon Sep 17 00:00:00 2001 From: johnappletree Date: Sat, 4 Mar 2017 13:51:12 +0100 Subject: [PATCH] added lines of code for ubuntu 16.04 installation (#2189) --- source/_docs/autostart/systemd.markdown | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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. ```