Google was not my friend, so i went over to the github Sickrage did a little browsing and in the base directory there was a init file for freebsd.
That was when i thougt hey maybe i can work with that.
First open a shell and go to your jail:
Code: Select all
jexec "Sabnzbd" cshI did not install py and dep, because i already installed them with the Sab install.
I used the Sabguide as a reference for the steps i had to go through.
If you are installing in a fresh jail i suppose you need the same packages as Sab uses, they were:
Code: Select all
pkg install python27 py27-sqlite3 unzip py27-yenc py27-cheetah py27-openssl py27-feedparser py27-utils unrar par2cmdline
The first thing i did was:
Code: Select all
fetch https://github.com/SiCKRAGETV/SickRage/archive/master.zipSo after another google session i found:
Code: Select all
setenv SSL_NO_VERIFY_PEERSo my next step was to unpack and move:
Code: Select all
tar -xzf marster.zip
rm master.zip
mv Sickrage-master Sickrage
mv Sickrage /usr/local/share
The next step was to create a sickbeard startup script:
Code: Select all
ee /etc/rc.d/sickbeardCode: Select all
#!/bin/sh
#
# PROVIDE: sickbeard
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# sickbeard_enable (bool): Set to NO by default.
# Set it to YES to enable it.
# sickbeard_user: The user account SickRage daemon runs as what
# you want it to be. It uses '_sabnzbd' user by
# default. Do not sets it as empty or it will run
# as root.
# sickbeard_group: The group account SickRage daemon runs as what
# you want it to be. It uses '_sabnzbd' group by
# default. Do not sets it as empty or it will run
# as wheel.
# sickbeard_dir: Directory where SickRage lives.
# Default: /usr/local/sickbeard
# sickbeard_datadir: Data directory for Sick Beard (DB, Logs, config)
# Default is same as sickbeard_dir
. /etc/rc.subr
name="sickbeard"
rcvar=${name}_enable
load_rc_config ${name}
: ${sickbeard_enable:="NO"}
: ${sickbeard_user:="_sabnzbd"}
: ${sickbeard_group:="_sabnzbd"}
: ${sickbeard_dir:="/usr/local/sickbeard"}
: ${sickbeard_datadir:="${sickbeard_dir}"}
pidfile="/var/run/sickbeard/sickbeard.pid"
command="/usr/local/bin/python2.7"
command_args="${sickbeard_dir}/SickBeard.py --datadir ${sickbeard_datadir} -d --pidfile ${pidfile} --quiet --nolaunch"
start_precmd="sickbeard_prestart"
sickbeard_prestart() {
if [ -f ${pidfile} ]; then
rm -f ${pidfile}
echo "Removing stale pidfile."
elif [ ! -d ${pidfile%/*} ]; then
install -d -o ${sickbeard_user} -g ${sickbeard_group} ${pidfile%/*}
fi
if [ ! -d ${sickbeard_datadir} ]; then
install -d -o ${sickbeard_user} -g ${sickbeard_group} ${sickbeard_datadir}
fi
}
run_rc_command "$1"Code: Select all
chmod 755 /etc/rc.d/sickbeardCode: Select all
ee /etc/rc.confCode: Select all
sickbeard_enable="YES"
sickbeard_user="root"
sickbeard_group="wheel"
sickbeard_dir="/usr/local/share/Sickrage/"
sickbeard_datadir="/usr/local/share/Sickrage/"I made some mistakes in the above used a user i didn't created yet and my folder naming was off.
This resulted in not starting of sickrage, the jail log only mentioned failed start.
So if you cannot start, try to run it from command line this way u will see what goes wrong.
Code: Select all
/etc/rc.d/sickbeard startI hope this helps another noob, hahah
If you see any mistakes or have pointers to improve this how to, feel free to reply !

