synology:jackett-synology
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| synology:jackett-synology [2020/09/28 13:24] – Wuff | synology:jackett-synology [2023/05/29 11:55] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Jackett on Synology ====== | ====== Jackett on Synology ====== | ||
| - | Latest version | + | SPK for Synology using dot-net framework rather than Mono for arm7,arm x64 and x86 is available |
| - | + | https:// | |
| - | After updates, Jackett may stop working properly. The start-stop-status script needs to be adjusted. | + | |
| - | + | ||
| - | The following script appears to be working for Jackett Version | + | |
| + | Manual update when auto-update fails: | ||
| < | < | ||
| - | sudo vi / | + | cd / |
| + | sudo mv jackett jackett-old | ||
| + | sudo mv / | ||
| </ | </ | ||
| + | |||
| + | Update 0.16-> | ||
| + | copy libstdc++.so.6.0.22 from a debian distro, and put it to /lib folder on the NAS | ||
| + | https:// | ||
| < | < | ||
| - | #!/bin/sh | + | cd /tmp |
| + | wget http:// | ||
| + | dpkg -x libstdc++6_6.3.0-18+deb9u1_armhf.deb libstd | ||
| + | sudo cp libstd/ | ||
| + | cd /lib/ | ||
| + | sudo chmod 555 libstdc++.so.6.0.22 | ||
| + | sudo ln -f -s libstdc++.so.6.0.22 libstdc++.so.6 | ||
| - | # Package | + | status pkgctl-jackett-dotnet |
| - | PACKAGE=" | + | start pkgctl-jackett-dotnet |
| - | DNAME=" | + | tail / |
| - | + | ||
| - | # Others | + | |
| - | INSTALL_DIR="/ | + | |
| - | MONO_DIR="/ | + | |
| - | PATH=" | + | |
| - | USER=" | + | |
| - | MONO=" | + | |
| - | APPSERVER=" | + | |
| - | # CFG_FILE=" | + | |
| - | PID_FILE=" | + | |
| - | LOG_FILE=" | + | |
| - | + | ||
| - | + | ||
| - | start_daemon () | + | |
| - | { | + | |
| - | su - ${USER} -c " | + | |
| - | } | + | |
| - | + | ||
| - | stop_daemon () | + | |
| - | { | + | |
| - | kill `cat ${PID_FILE}` | + | |
| - | wait_for_status 1 20 || kill -9 `cat ${PID_FILE}` | + | |
| - | rm -f ${PID_FILE} | + | |
| - | } | + | |
| - | + | ||
| - | daemon_status () | + | |
| - | { | + | |
| - | if [ -f ${PID_FILE} ] && kill -0 `cat ${PID_FILE}` > /dev/null 2>& | + | |
| - | return | + | |
| - | fi | + | |
| - | rm -f ${PID_FILE} | + | |
| - | return 1 | + | |
| - | } | + | |
| - | + | ||
| - | wait_for_status () | + | |
| - | { | + | |
| - | counter=$2 | + | |
| - | while [ ${counter} -gt 0 ]; do | + | |
| - | daemon_status | + | |
| - | [ $? -eq $1 ] && return | + | |
| - | let counter=counter-1 | + | |
| - | sleep 1 | + | |
| - | done | + | |
| - | return 1 | + | |
| - | } | + | |
| - | + | ||
| - | + | ||
| - | case $1 in | + | |
| - | start) | + | |
| - | if daemon_status; | + | |
| - | echo ${DNAME} is already running | + | |
| - | else | + | |
| - | echo Starting ${DNAME} ... | + | |
| - | start_daemon | + | |
| - | fi | + | |
| - | ;; | + | |
| - | stop) | + | |
| - | if daemon_status; | + | |
| - | echo Stopping ${DNAME} ... | + | |
| - | stop_daemon | + | |
| - | else | + | |
| - | echo ${DNAME} is not running | + | |
| - | fi | + | |
| - | ;; | + | |
| - | status) | + | |
| - | if daemon_status; | + | |
| - | echo ${DNAME} is running | + | |
| - | exit 0 | + | |
| - | else | + | |
| - | echo ${DNAME} is not running | + | |
| - | exit 1 | + | |
| - | fi | + | |
| - | ;; | + | |
| - | log) | + | |
| - | echo ${LOG_FILE} | + | |
| - | ;; | + | |
| - | *) | + | |
| - | exit 1 | + | |
| - | ;; | + | |
| - | esac | + | |
| - | </ | + | |
| - | + | ||
| - | ===== Manual update ===== | + | |
| - | + | ||
| - | In case of issues, the following instructions can be used to manually update | + | |
| - | + | ||
| - | < | + | |
| - | sudo su - | + | |
| - | cd "/ | + | |
| - | synoservicectl --stop pkgctl-jackett | + | |
| - | mv jackett jackett-old | + | |
| - | #latest release on https:// | + | |
| - | wget https:// | + | |
| - | tar -xzvf Jackett.Binaries.Mono.tar.gz | + | |
| - | mv Jackett | + | |
| - | #check permissions using ls -ld jackett-old or stat jackett-old | + | |
| - | chown -R sc-jackett: | + | |
| - | synoservicectl --start pkgctl-jackett | + | |
| - | #test then clean up | + | |
| - | rm Jackett.Binaries.Mono.tar.gz | + | |
| - | rm -r jackett-old/ | + | |
| </ | </ | ||
synology/jackett-synology.1601295843.txt.gz · Last modified: (external edit)