aboutsummaryrefslogtreecommitdiffstats
path: root/testing/home-assistant/home-assistant.initd
blob: b5dc6b074804af6144e6165e4665a9fc043e71b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
}