SOLVED - Unable to find sabnzbd in Fedora repo

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
KoffKoffus
Newbie
Newbie
Posts: 2
Joined: July 29th, 2013, 10:48 am

SOLVED - Unable to find sabnzbd in Fedora repo

Post by KoffKoffus »

Greetings,

I previously used Mint Linux, and have switched over to Fedora. In Fedora 19 I installed the rpmfusion repo, yet I still receive a 'no package available' when runnning yum search sabnzbd / SABnzbd. When I run 'yum repolist' I see rpmfusion is enabled.

No firewall, proxy, etc.

Any ideas? :-\

Thanks,
Koff
Last edited by KoffKoffus on August 2nd, 2013, 9:29 pm, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Unable to find sabnzbd in Fedora repo

Post by shypike »

KoffKoffus
Newbie
Newbie
Posts: 2
Joined: July 29th, 2013, 10:48 am

Re: Unable to find sabnzbd in Fedora repo

Post by KoffKoffus »

Thanks - that solved the problem!

I did a

Code: Select all

yum update -y
then a reboot, and then a

Code: Select all

yum install SABnzbd -y
and now I am up & running.

Gracias - very happy I am on Fedora and enjoying sabnzbd :-)

-Koff
diedjee
Newbie
Newbie
Posts: 9
Joined: December 22nd, 2010, 1:33 pm

Re: SOLVED - Unable to find sabnzbd in Fedora repo

Post by diedjee »

I also got SABnzbd running on Fedora using the instructions on the wiki.
In addition, I made some changes to the daemon scripts to make things more robust/simpler.
I noticed that starting/stopping the SABnzbd daemon didn't work (anymore) since nc -z for port scanning is not supported anymore.

Additions are appreciated!

/etc/sysconfig/SABnzbd

Code: Select all

# SABnzbd service configuration

#run SABnzbd as
sabuser=sabnzbd

#modify if SABnzbd config file is somewhere else for some reason
config="/home/${sabuser}/.sabnzbd/sabnzbd.ini"

#API key (can be found in the above config file)

apikey=$(cat "$config" | grep -E "^api_key =" | awk '{print $3}')

#gui address, eg: ${protocol}://${host}:${port}/sabznbd/
protocol=http
host=localhost
port=8080

#leave blank if no username/password is required to access the gui
username=
password=

#use nice, ionice, taskset to start SABnzbd
nicecmd=
#  example: nicecmd="nice -n 19 ionice -c3"

/etc/init.d/SABnzbd

Code: Select all

#!/bin/sh

# chkconfig: - 20 80
# description: SABnzbd

exec="/usr/share/SABnzbd/SABnzbd.py"
prog="SABnzbd"

if [ -f /etc/sysconfig/$prog ]; then
	. /etc/sysconfig/$prog
fi

if [ ! -n "$sabuser" -o ! -n "$apikey" -o ! -n "$protocol" -o ! -n  "$host"  -o ! -n "$port" ]; then
  echo "Please configure /etc/sysconfig/$prog first."
  [ ! -n "$sabuser"  ] && echo -n " sabuser"
  [ ! -n "$apikey"   ] && echo -n " apikey"
  [ ! -n "$protocol" ] && echo -n " protocol"
  [ ! -n "$host"     ] && echo -n " host"
  [ ! -n "$port"     ] && echo -n " port"
  echo " variable(s) undefined"
  exit 1
fi

if [ ! -f "$config" ]; then
  echo "Can't find $config."
  echo "Please run SABnzbd as $sabuser manually to configure it first."
  exit 1
fi
			   
# Source function library.
. /etc/rc.d/init.d/functions

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    echo -n $"Starting $prog: "
    # if not running, start it up here, usually something like "daemon $exec"
    daemon --user=$sabuser $nicecmd $exec -d -f $config
    retval=$?
    echo
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "$username" ]; then
 	shutdownurl="${protocol}://${host}:${port}/sabnzbd/shutdown?ma_username=${username}&ma_password=${password}&session=${apikey}"
    else
	shutdownurl="${protocol}://${host}:${port}/sabnzbd/shutdown?session=${apikey}"
    fi

    /usr/bin/wget -q --delete-after --no-check-certificate "$shutdownurl"

echo "fetched $shutdownurl"

    for sleepval in 1s 5s 10s 20s;do
	sleep $sleepval
        rh_status_q
        ret=$?
	if [ $ret -ne 0 ];then
	    echo_success
	    echo
	    return 0
	fi
    done
    echo_failure
    return 1
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

#Check whether the server is listening on $host:$port
#An exit value of 0 means: LISTENING
#Another value means: NOT LISTENING
rh_status() {
    # run checks to determine if the service is running or use generic status
    nbports=$(netstat -lnt | awk '$6 == "LISTEN" && $4 ~ ":'$port'"' | wc -l)

    if [ $nbports -ne 0 ];then
	pid=`ps -fu $sabuser | grep -v grep | grep SABnzbd.py | awk '{print $2}'`;
	echo "$prog (pid $pid) is running...";
	ret=0;
    else
	echo "$prog is stopped"
	ret=1;
    fi
    echo "rh_status return=$ret"
    return $ret;

}

#Same definition as for rh_status but query version (no output)
rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
echo "STOP SWITCH"
        rh_status
        rh_status_q || echo "TEST 1"
        rh_status_q && echo "TEST 2"
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        $1
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

User avatar
jcfp
Release Testers
Release Testers
Posts: 1032
Joined: February 7th, 2008, 12:45 pm

Re: SOLVED - Unable to find sabnzbd in Fedora repo

Post by jcfp »

You may want to pm forum user hansvon about the stuff you just posted, so things gets fixed in the repository.
Post Reply