mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Updating Debian daemon script for Python Virtual Environments
Fix to init.d script that forces the correct virtual environment to be loaded.
This commit is contained in:
parent
27850ef5df
commit
7fcdb9b975
@ -12,7 +12,7 @@
|
|||||||
# Created with: https://gist.github.com/naholyr/4275302#file-new-service-sh
|
# Created with: https://gist.github.com/naholyr/4275302#file-new-service-sh
|
||||||
#
|
#
|
||||||
# Installation:
|
# Installation:
|
||||||
# 1) Populate RUNAS and RUNDIR folders
|
# 1) Populate RUNAS and RUNDIR variables
|
||||||
# 2) Create Log -- sudo touch /var/log/homeassistant.log
|
# 2) Create Log -- sudo touch /var/log/homeassistant.log
|
||||||
# 3) Set Log Ownership -- sudo chown USER:GROUP /var/log/homeassistant.log
|
# 3) Set Log Ownership -- sudo chown USER:GROUP /var/log/homeassistant.log
|
||||||
# 4) Create PID File -- sudo touch /var/run/homeassistant.pid
|
# 4) Create PID File -- sudo touch /var/run/homeassistant.pid
|
||||||
@ -29,7 +29,7 @@
|
|||||||
# If you are not, the SCRIPT variable must be modified to point to the correct
|
# If you are not, the SCRIPT variable must be modified to point to the correct
|
||||||
# Python environment.
|
# Python environment.
|
||||||
|
|
||||||
SCRIPT="./bin/python -m homeassistant"
|
SCRIPT="source bin/activate; ./bin/python -m homeassistant"
|
||||||
RUNAS=<USER TO RUN SERVER AS>
|
RUNAS=<USER TO RUN SERVER AS>
|
||||||
RUNDIR=<LOCATION OF home-assistant DIR>
|
RUNDIR=<LOCATION OF home-assistant DIR>
|
||||||
PIDFILE=/var/run/homeassistant.pid
|
PIDFILE=/var/run/homeassistant.pid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user