From f6240c3cf00582e86d566d81872efeb7f84efbb0 Mon Sep 17 00:00:00 2001 From: KZ Date: Mon, 21 Sep 2015 19:42:17 +0100 Subject: [PATCH] Synology config #182 --- Build.bat | 65 +++++++++++++++++++++++++------------------------- README.md | 25 ++++++++++++------- Upstart.config | 20 ++++++++++++++++ 3 files changed, 69 insertions(+), 41 deletions(-) create mode 100644 Upstart.config diff --git a/Build.bat b/Build.bat index ffd86e39c..c00001a65 100644 --- a/Build.bat +++ b/Build.bat @@ -1,32 +1,33 @@ - -rmdir /s /q build.windows -rmdir /s /q build.mono -rmdir /s /q Output -cd src -Msbuild Jackett.sln /t:Clean,Build /p:Configuration=Release /verbosity:minimal -cd .. - -xcopy src\Jackett.Console\bin\Release build.windows\ /e /y -copy /Y src\Jackett.Service\bin\Release\JackettService.exe build.windows\JackettService.exe -copy /Y src\Jackett.Service\bin\Release\JackettService.exe.config build.windows\JackettService.exe.config -copy /Y src\Jackett.Tray\bin\Release\JackettTray.exe build.windows\JackettTray.exe -copy /Y src\Jackett.Tray\bin\Release\JackettTray.exe.config build.windows\JackettTray.exe.config -copy /Y LICENSE build.windows\LICENSE -copy /Y README.md build.windows\README.md - - -cd src -Msbuild Jackett.sln /t:Clean -call "C:\Program Files (x86)\Mono\bin\xbuild.bat" Jackett.sln /t:Build /p:Configuration=Release /verbosity:minimal -cd .. - -xcopy src\Jackett.Console\bin\Release build.mono\ /e /y -copy /Y src\Jackett.Service\bin\Release\JackettService.exe build.mono\JackettService.exe -copy /Y src\Jackett.Service\bin\Release\JackettService.exe.config build.mono\JackettService.exe.config -copy /Y src\Jackett.Tray\bin\Release\JackettTray.exe build.mono\JackettTray.exe -copy /Y src\Jackett.Tray\bin\Release\JackettTray.exe.config build.mono\JackettTray.exe.config -copy /Y LICENSE build.mono\LICENSE -copy /Y README.md build.mono\README.md - -iscc Installer.iss - + +rmdir /s /q build.windows +rmdir /s /q build.mono +rmdir /s /q Output +cd src +Msbuild Jackett.sln /t:Clean,Build /p:Configuration=Release /verbosity:minimal +cd .. + +xcopy src\Jackett.Console\bin\Release build.windows\ /e /y +copy /Y src\Jackett.Service\bin\Release\JackettService.exe build.windows\JackettService.exe +copy /Y src\Jackett.Service\bin\Release\JackettService.exe.config build.windows\JackettService.exe.config +copy /Y src\Jackett.Tray\bin\Release\JackettTray.exe build.windows\JackettTray.exe +copy /Y src\Jackett.Tray\bin\Release\JackettTray.exe.config build.windows\JackettTray.exe.config +copy /Y LICENSE build.windows\LICENSE +copy /Y README.md build.windows\README.md + + +cd src +Msbuild Jackett.sln /t:Clean +call "C:\Program Files (x86)\Mono\bin\xbuild.bat" Jackett.sln /t:Build /p:Configuration=Release /verbosity:minimal +cd .. + +xcopy src\Jackett.Console\bin\Release build.mono\ /e /y +copy /Y src\Jackett.Service\bin\Release\JackettService.exe build.mono\JackettService.exe +copy /Y src\Jackett.Service\bin\Release\JackettService.exe.config build.mono\JackettService.exe.config +copy /Y src\Jackett.Tray\bin\Release\JackettTray.exe build.mono\JackettTray.exe +copy /Y src\Jackett.Tray\bin\Release\JackettTray.exe.config build.mono\JackettTray.exe.config +copy /Y LICENSE build.mono\LICENSE +copy /Y README.md build.mono\README.md +copy /Y Upstart.config build.mono\Upstart.config + +iscc Installer.iss + diff --git a/README.md b/README.md index 01f76a370..e317f4708 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,14 @@ We were previously focused on TV but are working on extending searches to allow * [Torrentz](https://torrentz.eu/) * [TV Chaos UK](https://tvchaosuk.com/) +#### Installation on Windows + +Grab the latest release from the [website](http://jackett.net/Download). + +We recommend you install Jackett as a Windows service using the supplied installer. When installed as a service the tray icon acts as a way to open/start/stop Jackett. If you opted to not install it as a service then Jackett will run its web server from the tray tool. + +Jackett can also be run from the command line using JackettConsole.exe if you would like to see log messages (Ensure the server isn't already running from the tray/service). + #### Installation on Linux/OSX 1. Install [Mono 4](http://www.mono-project.com/download/) or better 2. Install libcurl: @@ -63,15 +71,14 @@ We were previously focused on TV but are working on extending searches to allow * For other distros see the [Curl docs](http://curl.haxx.se/dlwiz/?type=devel). 3. Download and extract the latest ```.tar.bz2``` release from the [website](http://jackett.net/Download) and run Jackett using mono with the command "mono JackettConsole.exe". - -#### Installation on Windows - -Grab the latest release from the [web site](http://jackett.net/Download). - -We recommend you install Jackett as a Windows service using the supplied installer. When installed as a service the tray icon acts as a way to open/start/stop Jackett. If you opted to not install it as a service then Jackett will run its web server from the tray tool. - -Jackett can also be run from the command line using JackettConsole.exe if you would like to see log messages (Ensure the server isn't already running from the tray/service). - +#### Installation on Synology +1. Install Sonarr & Mono 3.10 from synocommunity. +2. Install Mono beta 3.12 from the main Synology repo (Or newer if available). +3. Download jackett and place it in /opt/Jackett +4. cd /opt +5. chown -R {user who will run jackett} Jackett +6. Copy Upstart.config to /etc/init/jackett.conf and replace the braces {} in the script with the username that you wish to run Jackett with. +9. From anywhere on command line type "start jackett" . You should see output telling you that Jackett is running and you should be able to browse to {IP Address}:9117 . If not you should check /var/log/upstart/jackett.log and see what that says. #### Troubleshooting diff --git a/Upstart.config b/Upstart.config new file mode 100644 index 000000000..0044e8278 --- /dev/null +++ b/Upstart.config @@ -0,0 +1,20 @@ +author "sea3pea0" +description "Upstart Script to run NzbDrone as a service on Ubuntu/Debian based systems, as well as others" + +#Set username for the process. Should probably be what you use for logging in +setuid {username to run jackett} +setgid users + +#This is the install directory. If you installed using a deb package or the NzbDrone Repository you do not need to change this + +env DIR=/opt/Jackett +env LD_LIBRARY_PATH=/usr/local/nzbdrone/lib + +start on runlevel [2345] +stop on runlevel [016] + +respawn +script + chdir $DIR + exec /volume1/@appstore/Mono/usr/bin/mono --debug JackettConsole.exe +end script \ No newline at end of file