aboutsummaryrefslogtreecommitdiffstats
path: root/testing/home-assistant/home-assistant.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/home-assistant/home-assistant.initd')
-rwxr-xr-xtesting/home-assistant/home-assistant.initd18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/home-assistant/home-assistant.initd b/testing/home-assistant/home-assistant.initd
new file mode 100755
index 0000000000..b5dc6b0748
--- /dev/null
+++ b/testing/home-assistant/home-assistant.initd
@@ -0,0 +1,18 @@
+#!/sbin/openrc-run
+
+name="Home Assistant"
+command="/usr/bin/hass"
+command_args="--config $HASS_CONF --pid-file $HASS_PID --daemon"
+start_stop_daemon_args="--user $HASS_USER --group $HASS_GROUP"
+pidfile="$HASS_PID"
+retry="TERM/30/KILL/5"
+
+depend() {
+ need net localmount
+ after firewall
+}
+
+start_pre() {
+ checkpath --directory --owner $HASS_USER:$HASS_GROUP --mode 0775 \
+ /run/hass
+}