Once service stops, won't restart
Posted: October 21st, 2013, 3:34 pm
I currently have Sab v 0.7.16 running as a service on a 12.04 LTS vm. If I stop the service, it fails when I try to restart it, but I can still run sabnzbd from the command line. When I run:
I get this output:
Can anyone help?
Code: Select all
sh -x /etc/init.d/sabnzbdplus start
Code: Select all
+ NAME=sabnzbdplus
+ DAEMON=/usr/bin/sabnzbdplus
+ SETTINGS=/etc/default/sabnzbdplus
+ [ -x /usr/bin/sabnzbdplus ]
+ [ -r /etc/default/sabnzbdplus ]
+ DESC=SABnzbd+ binary newsgrabber
+ DEFOPTS=--daemon
+ sed -n 1s/^#\! \?\([a-z0-9\.\/]\+\)\(.*\)/\1(\2)?/p /usr/bin/sabnzbdplus
+ PYTHONEXEC=^/usr/bin/python( -OO)?
+ PIDFILE=/var/run/sabnzbdplus.pid
+ unset USER CONFIG HOST PORT EXTRAOPTS
+ . /lib/lsb/init-functions
+ FANCYTTY=
+ [ -e /etc/lsb-base-logging.sh ]
+ . /etc/lsb-base-logging.sh
+ LOG_DAEMON_MSG=
+ start_sab
+ load_settings
+ [ -z ]
+ . /etc/default/sabnzbdplus
+ USER=sean
+ CONFIG=
+ HOST=0.0.0.0
+ PORT=8081
+ EXTRAOPTS=
+ [ -z sean ]
+ OPTIONS=--daemon
+ [ -n ]
+ [ -n 0.0.0.0 ]
+ SERVER=0.0.0.0
+ [ -n 8081 ]
+ SERVER=0.0.0.0:8081
+ [ -n 0.0.0.0:8081 ]
+ OPTIONS=--daemon --server 0.0.0.0:8081
+ [ -n ]
+ return 0
+ is_running
+ pgrep -f -x -u sean ^/usr/bin/python( -OO)? /usr/bin/sabnzbdplus --daemon.*
+ PID=
+ RET=1
+ [ 1 -gt 1 ]
+ return 1
+ log_daemon_msg Starting SABnzbd+ binary newsgrabber
+ [ -z Starting SABnzbd+ binary newsgrabber ]
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ [ xxterm != x ]
+ [ 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 xenl
+ /usr/bin/tput cols
+ COLS=80
+ [ 80 ]
+ [ 80 -gt 6 ]
+ /usr/bin/expr 80 - 7
+ COL=73
+ log_use_plymouth
+ [ n = y ]
+ plymouth --ping
+ printf * Starting SABnzbd+ binary newsgrabber
* Starting SABnzbd+ binary newsgrabber + /usr/bin/expr 80 - 1
+ /usr/bin/tput hpa 79
+ printf
+ start-stop-daemon --quiet --chuid sean --start --exec /usr/bin/sabnzbdplus -- --daemon --server 0.0.0.0:8081
+ check_retval
+ [ 2 -eq 0 ]
+ log_end_msg 1
+ [ -z 1 ]
+ [ 73 ]
+ [ -x /usr/bin/tput ]
+ log_use_plymouth
+ [ n = y ]
+ plymouth --ping
+ printf \r
+ /usr/bin/tput hpa 73
+ [ 1 -eq 0 ]
+ printf [
[+ /usr/bin/tput setaf 1
+ printf fail
fail+ /usr/bin/tput op
+ echo ]
]
+ return 1
+ exit 1