Balthasar Schopman
Cadet
- Joined
- Mar 7, 2016
- Messages
- 6
I want to run Jackett alongside Sonarr, so in the Sonarr jail I've install mono and Jacket by doing:
Then when I
Naturally, I want to run Jackett as a daemon. I've got experience with init.d scripts and upstart, but not FreeBSD's rc scripting. I'm attempting to create a script using this guide and a previous discussion, but I haven't managed. Here's what I have so far:
To
I'm trying to keep
Now when I run
I tried a bunch of things, like removing
pkg update && pkg upgrade -y
pkg install lang/mono
pkg install ftp/curl
wget https://github.com/Jackett/Jackett/releases/download/v0.7.363/Jackett.Binaries.Mono.tar.gz
tar xzf Jackett.Binaries.Mono.tar.gz
mv Jackett /usr/local/bin
rm Jackett.Binaries.Mono.tar.gz
Then when I
cd /usr/local/bin/Jackett/
and run mono JackettConsole.exe
it actually works! Hurray!Naturally, I want to run Jackett as a daemon. I've got experience with init.d scripts and upstart, but not FreeBSD's rc scripting. I'm attempting to create a script using this guide and a previous discussion, but I haven't managed. Here's what I have so far:
To
/etc/rc.conf
I add some lines defining from where I want to run to process and maybe even where it stores its data: jackett_enable="YES"
jackett_data_dir="/var/db/jackett"
jackett_user="media"
jackett_chroot="/usr/local/bin/Jackett"
I'm trying to keep
/usr/local/etc/rc.d/jackett
(the actual script that starts the process) as clean as possible: #!/bin/sh
. /etc/rc.subr
name=jackett
rcvar=jackett_enable
command="/usr/local/bin/mono-sgen"
command_args="JackettConsole.exe"
pidfile="/var/run/${name}.pid"
load_rc_config $name
run_rc_command "$1"
Now when I run
service jackett start
I get: /usr/local/etc/rc.d/jackett: WARNING: run_rc_command: cannot run /usr/local/bin/mono-sgen
I tried a bunch of things, like removing
jackett_user="media"
so that it would run as root and chaning command="/usr/local/bin/mono"
to command="/usr/local/bin/mono-sgen"
, but I'm not sure why this script can't run. Does anybody know what I'm doing wrong?