
If there is any interest in the appliance, just let me know, Ill package it.
( some details good to know here http://taesch.com/my-digital-life/manua ... on-sabnzbd )
Code: Select all
#!/bin/bash
python /usr/share/SABnzbd/SABnzbd.py --browser 0 -d
Code: Select all
sudo chmod +x /etc/init.d/sabnzbd
sudo update-rc.d -f sabnzbd remove
sudo update-rc.d -f sabnzbd defaults
Start post of this topic says:subsense wrote: But, I can't find out how to start it automaticly when the system boots.
jcfp wrote: Alternatively, the program can be started as a service (i.e., in the background on system boot) using the init.d script provided by the package. It will only work after you edit /etc/default/sabnzbdplus as per instructions in that file. Although for obvious reasons no browser is auto-started when running the program like this, the web interface is still available at the usual location of http://localhost:8080/sabnzbd/ (or whatever other host and port you configured).
Code: Select all
sudo /etc/init.d/sabnzbdplus action
Code: Select all
# This file is sourced by /etc/init.d/sabnzbdplus
#
# When SABnzbd+ is started using the init script, the
# --daemon option is always used, and the program is
# started under the account of $USER, as set below.
#
# Each setting is marked either "required" or "optional";
# leaving any required setting unconfigured will cause
# the service to not start.
# [required] user or uid of account to run the program as:
USER=xbmc
# [optional] full path to the configuration file of your choice;
# otherwise, the default location (in $USER's home
# directory) is used:
CONFIG=/home/xbmc/.sabnzbd/sabnzbd.ini
# [optional] hostname/ip and port number to listen on:
HOST=192.168.0.15
PORT=8000
# [optional] extra command line options, if any:
EXTRAOPTS=
Code: Select all
sudo /etc/init.d/sabnzbdplus start
Code: Select all
2009-08-25 15:07:35,233::WARNING::Cannot find web template: /etc/share/sabnzbdpl us/interfaces/Default/templates/main.tmpl, trying standard template
2009-08-25 15:07:35,234::ERROR::Cannot find standard template: /etc/share/sabnzb dplus/interfaces/Default
Traceback (most recent call last):
File "/etc/init.d/sabnzbdplus", line 65, in <module>
import win32api
ImportError: No module named win32api
2009-08-25 15:07:35,238::INFO::Lauching browser with /tmp/tmpiE9Ygk.html
(T: XBMCLive)xbmc@XBMCLive:~$
Code: Select all
(T: XBMCLive)xbmc@XBMCLive:~$ sudo update-rc.d sabnzbdplus defaults
update-rc.d: warning: /etc/init.d/sabnzbdplus missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
System startup links for /etc/init.d/sabnzbdplus already exist.
That looks fine, this on the other hand:subsense wrote: This is currently my "/etc/default/sabnzbd" file
...indicates somebody has been tampering with things; Linux Standard Base info actually is provided by the packaged init script.subsense wrote:Code: Select all
update-rc.d: warning: /etc/init.d/sabnzbdplus missing LSB information
Code: Select all
sudo apt-get purge sabnzbdplus
sudo apt-get install "sabnzbdplus*"
Code: Select all
(T: XBMCLive)xbmc@XBMCLive:~$ sh -x /etc/init.d/sabnzbdplus start
+ DAEMON=/usr/bin/sabnzbdplus
+ [ -x /usr/bin/sabnzbdplus ]
+ basename /usr/bin/sabnzbdplus
+ NAME=sabnzbdplus
+ DESC=SABnzbd+ binary newsgrabber
+ SETTINGS=/etc/default/sabnzbdplus
+ OPTIONS=--daemon
+ sed -n 1s/^#\!\([a-z0-9\.\/]\+\).*/\1/p /usr/bin/sabnzbdplus
+ readlink -f /usr/bin/python2.5
+ PYTHONEXEC=/usr/bin/python2.5
+ PIDFILE=/var/run/sabnzbdplus.pid
+ . /lib/lsb/init-functions
+ FANCYTTY=
+ [ -e /etc/lsb-base-logging.sh ]
+ . /etc/lsb-base-logging.sh
+ load_settings
+ [ -r /etc/default/sabnzbdplus ]
+ . /etc/default/sabnzbdplus
+ USER=
+ CONFIG=
+ HOST=
+ PORT=
+ EXTRAOPTS=
+ [ -z ]
+ log_warning_msg SABnzbd+ binary newsgrabber: not configured, aborting. See /etc/default/sabnzbdplus
+ log_use_usplash
+ [ n = y ]
+ type usplash_write
+ usplash_write TEXT SABnzbd+ binary newsgrabber: not configured, aborting. See /etc/default/sabnzbdplus
+ log_to_console log_warning_msg SABnzbd+ binary newsgrabber: not configured, aborting. See /etc/default/sabnzbdplus
+ [ n != y ]
+ [ no != yes ]
+ readlink /proc/self/fd/0
+ stdin=/dev/pts/0
+ [ /dev/pts/0 != /dev/pts/0 ]
+ return 0
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ [ xxterm != ]
+ [ xxterm != xdumb ]
+ [ -x /usr/bin/tput ]
+ [ -x /usr/bin/expr ]
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ [ -z ]
+ FANCYTTY=1
+ true
+ /usr/bin/tput setaf 3
+ YELLOW=
+ /usr/bin/tput op
+ NORMAL=
+ echo * SABnzbd+ binary newsgrabber: not configured, aborting. See /etc/default/sabnzbdplus
* SABnzbd+ binary newsgrabber: not configured, aborting. See /etc/default/sabnzbdplus
+ exit 0
You did it before, just do it again. Any editor will do just remember to use sudo when editing systemwide config files. Attempting to start the init script before doing this results in the warning message you got.jcfp wrote: ...then edit /etc/default/sabnzbdplus (it will be all fresh again)