diff options
Diffstat (limited to 'unmaintained/home-assistant/home-assistant.initd')
-rwxr-xr-x | unmaintained/home-assistant/home-assistant.initd | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/unmaintained/home-assistant/home-assistant.initd b/unmaintained/home-assistant/home-assistant.initd new file mode 100755 index 0000000000..b5dc6b0748 --- /dev/null +++ b/unmaintained/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 +} |