openrc and python venv
William Kenworthy <[email protected]> Sun, 12 Apr 2026 16:59:55 +0800
| Newsgroups | gmane.linux.gentoo.user |
|---|---|
| Organization | me@home |
| Message-ID | <[email protected]> |
Hi,
On an openrc system I am manually starting an instance of
homeassistant installed in a python venv.
The process is:
login as the homeassistant user, set the PATH and activate the venv
before running the application.
e.g.
export
PATH="${PATH}:/var/lib/homeassistant:/var/lib/homeassistant/bin:/var/lib/homeassistant/.local/bin
source /var/lib/homeassistant/bin/activate
./bin/hass
I tried to get it to start using an openrc service file a few months
back and failed. Can this be done in a service file?