diff options
author | 2017-12-12 16:13:28 +0000 | |
---|---|---|
committer | 2017-12-12 16:13:28 +0000 | |
commit | 79ca253653db442b53a8b6b348454904a9a79f67 (patch) | |
tree | 777f6bf3efe19c652f2b1673ba10519bfbb507ae /app-misc/homeassistant-bin/files | |
parent | work in progress - not installable yet. (diff) | |
download | lmiphay-79ca253653db442b53a8b6b348454904a9a79f67.tar.gz lmiphay-79ca253653db442b53a8b6b348454904a9a79f67.tar.bz2 lmiphay-79ca253653db442b53a8b6b348454904a9a79f67.zip |
attempt install via pip...
Diffstat (limited to 'app-misc/homeassistant-bin/files')
-rw-r--r-- | app-misc/homeassistant-bin/files/homeassistant.conf.d | 9 | ||||
-rwxr-xr-x | app-misc/homeassistant-bin/files/homeassistant.init.d | 30 |
2 files changed, 39 insertions, 0 deletions
diff --git a/app-misc/homeassistant-bin/files/homeassistant.conf.d b/app-misc/homeassistant-bin/files/homeassistant.conf.d new file mode 100644 index 0000000..bed680f --- /dev/null +++ b/app-misc/homeassistant-bin/files/homeassistant.conf.d @@ -0,0 +1,9 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# /etc/conf.d/homeassistant: configuration for /etc/init.d/homeassistant + +# Switches to pass to hass. See 'hass --help' for +# a description of the possible switches. +# +HASS_OPTS="" diff --git a/app-misc/homeassistant-bin/files/homeassistant.init.d b/app-misc/homeassistant-bin/files/homeassistant.init.d new file mode 100755 index 0000000..4dfdcdb --- /dev/null +++ b/app-misc/homeassistant-bin/files/homeassistant.init.d @@ -0,0 +1,30 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="Open-source home automation platform" + +user="homeassistant:homeassistant" +logfile="/var/log/homeassistant.log" + +start_stop_daemon_args="--user $user" + +command="/opt/homeassistant/bin/hass" +command_args=" + --config /etc/homeassistant + --pid-file /run/homeassistant.pid + --log-file $logfile + ${HASS_OPTS} +" + +command_background=yes +pidfile=/run/homeassistant.pid + +depend() { + need net + after bootmisc +} + +start_pre() { + checkpath --file --owner $user --mode 0644 $logfile +} |