updated sysv file to provide the python_path environment variable when not already present
This commit is contained in:
parent
b9ce2ef4dd
commit
2662a36f09
2 changed files with 7 additions and 6 deletions
|
@ -141,6 +141,7 @@ define change-files =
|
||||||
$(info creating file $1 from $1.in)
|
$(info creating file $1 from $1.in)
|
||||||
@$(SED) -e 's,[@]sbindir[@],$(sbindir),g' \
|
@$(SED) -e 's,[@]sbindir[@],$(sbindir),g' \
|
||||||
-e 's,[@]bindir[@],$(bindir),g' \
|
-e 's,[@]bindir[@],$(bindir),g' \
|
||||||
|
-e 's,[@]pythondir[@],$(pythondir),g' \
|
||||||
-e 's,[@]PYTHON[@],$(PYTHON),g' \
|
-e 's,[@]PYTHON[@],$(PYTHON),g' \
|
||||||
-e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g' \
|
-e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g' \
|
||||||
-e 's,[@]PACKAGE_DATE[@],$(PACKAGE_DATE),g' \
|
-e 's,[@]PACKAGE_DATE[@],$(PACKAGE_DATE),g' \
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
NAME=`basename $0`
|
NAME=`basename $0`
|
||||||
PIDFILE="@CORE_STATE_DIR@/run/$NAME.pid"
|
PIDFILE="@CORE_STATE_DIR@/run/$NAME.pid"
|
||||||
LOG="@CORE_STATE_DIR@/log/$NAME.log"
|
LOG="@CORE_STATE_DIR@/log/$NAME.log"
|
||||||
CMD="@PYTHON@ @bindir@/$NAME"
|
CMD="PYTHON_PATH=@pythondir@ @PYTHON@ @bindir@/$NAME"
|
||||||
|
|
||||||
get_pid() {
|
get_pid() {
|
||||||
cat "$PIDFILE"
|
cat "$PIDFILE"
|
||||||
|
|
Loading…
Reference in a new issue