updated sysv file to provide the python_path environment variable when not already present

This commit is contained in:
Blake J. Harnden 2018-04-11 09:57:02 -07:00
parent b9ce2ef4dd
commit 2662a36f09
2 changed files with 7 additions and 6 deletions

View file

@ -141,6 +141,7 @@ define change-files =
$(info creating file $1 from $1.in)
@$(SED) -e 's,[@]sbindir[@],$(sbindir),g' \
-e 's,[@]bindir[@],$(bindir),g' \
-e 's,[@]pythondir[@],$(pythondir),g' \
-e 's,[@]PYTHON[@],$(PYTHON),g' \
-e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g' \
-e 's,[@]PACKAGE_DATE[@],$(PACKAGE_DATE),g' \

View file

@ -20,7 +20,7 @@
NAME=`basename $0`
PIDFILE="@CORE_STATE_DIR@/run/$NAME.pid"
LOG="@CORE_STATE_DIR@/log/$NAME.log"
CMD="@PYTHON@ @bindir@/$NAME"
CMD="PYTHON_PATH=@pythondir@ @PYTHON@ @bindir@/$NAME"
get_pid() {
cat "$PIDFILE"