Skip to content

Commit

Permalink
jackett fix mono start script
Browse files Browse the repository at this point in the history
  • Loading branch information
publicarray committed Mar 13, 2021
1 parent 05c4d21 commit 18fb435
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spk/jackett/src/service-setup-mono.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ MONO_PATH="/var/packages/mono/target/bin"
PATH="${SYNOPKG_PKGDEST}/bin:${MONO_PATH}:${PATH}"
MONO="${MONO_PATH}/mono"
JACKETT="${SYNOPKG_PKGDEST}/share/JackettConsole.exe"
HOME_DIR="${SYNOPKG_PKGDEST}/var"

# workaround for mono bug with armv5 (https://github.com/mono/mono/issues/12537)
if [ "$SYNOPKG_DSM_ARCH" == "88f6281" -o "$SYNOPKG_DSM_ARCH" == "88f6282" ]; then
MONO="MONO_ENV_OPTIONS='-O=-aot,-float32' ${MONO_PATH}/mono"
fi

COMMAND="env HOME=${HOME_DIR} PATH=${PATH} LD_LIBRARY_PATH=${SYNOPKG_PKGDEST}/lib ${MONO} ${JACKETT} --PIDFile ${PID_FILE}"
SERVICE_COMMAND="env HOME=${HOME_DIR} PATH=${PATH} LD_LIBRARY_PATH=${SYNOPKG_PKGDEST}/lib ${MONO} ${JACKETT} --PIDFile ${PID_FILE}"
SVC_BACKGROUND=y

0 comments on commit 18fb435

Please sign in to comment.