home-assistant.io/source/getting-started/autostart-synology.markdown
Cláudio Ribeiro 74b03ba4db Minor fix (#1106)
In this particular case, i think using 'into' makes more sense than 'onto', as 'onto' normally refers to moving to a location on the surface of something or moving aboard with the intention of traveling in it.
2016-10-04 17:30:36 +02:00

1.2 KiB

layout, title, description, date, sidebar, comments, sharing, footer
layout title description date sidebar comments sharing footer
page Autostart on Synology NAS boot Instructions how to setup Home Assistant to launch on boot on Synology NAS. 2015-9-1 22:57 true false true true

To get Home Assistant to automatically start when you boot your Synology NAS:

SSH into your synology & login as admin or root

$ cd /volume1/homeassistant

Create "homeassistant.conf" file using the following code

# only start this service after the httpd user process has started
start on started httpd-user

# stop the service gracefully if the runlevel changes to 'reboot'
stop on runlevel [06]

# run the scripts as the 'http' user. Running as root (the default) is a bad ide
#setuid admin

# exec the process. Use fully formed path names so that there is no reliance on
# the 'www' file is a node.js script which starts the foobar application.
exec /bin/sh /volume1/homeassistant/hass-daemon start

Register the autostart

$ ln -s homeassistant-conf /etc/init/homeassistant-conf

Make the relevant files executable:

$ chmod -r 777 /etc/init/homeassistant-conf

That's it - reboot your NAS and Home Assistant should automatically start