Sonarr version (exact version):
2.0.0.4146 - May 11 2016
Mono version (if Sonarr is not running on Windows):
Mono JIT compiler version 4.4.0 (tarball Tue Jun 14 13:41:51 UTC 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
OS:
Debian Jessie 8.5.0
Description of issue:
I can run from command line
/usr/bin/mono /opt/NzbDrone/NzbDrone.exe -nobrowser -data=/opt/NzbDrone/data/
Sonarr Starts and i’m able to configure/use
When i run /etc/init.d/nzbdrone i get
[.ok.] Starting nzbdrone (via systemctl):
but it appears to never start i cant access the web interface
my /etc/init.d/nzbdrone
#!/bin/sh
BEGIN INIT INFO
Default-Start: 2 3 4 5
Provides: nzbdrone
Required-Start: $local_fs $remote_fs $network $syslog
Required-Stop: $local_fs $remote_fs $network $syslog
Default-Start: 2 3 4 5
Default-Stop: 0 1 6
Short-Description: nzbdrone
Description: NZBDrone
END INIT INFO
. /lib/lsb/init-functions
#set -e
NAME=nzbdrone
DESC=“NZBDrone”
MONO=$(which mono)
DAEMON=/opt/NzbDrone/NzbDrone.exe
DAEMONOPTS=“-nobrowser”
DATADIR=/opt/NzbDrone/data
PIDDIR=/var/run/${NAME}
PIDFILE=${PIDDIR}/${NAME}.pid
echo $NZBDRONE_PID > $PID_FILE
RUNASUSER=nzbdrone
RUNASGROUP=htpc
RUNAS=$RUNASUSER:$RUNASGROUP
if ! [ -r ${DAEMON} ]; then echo “Can’t read: ${DAEMON}” 2>&1; exit 1; fi
if ! [ -x ${MONO} ]; then echo “Not executable: ${MONO}” 2>&1; exit 1; fi
if ! [ -d ${DATADIR} ]; then echo “No such directory: ${DATADIR}” 2>&1; exit 1; fi
get_pid() {
pgrep -of “^${MONO} ${DAEMON}”
}
check_pid() {
if [ ! -d ${PIDDIR} ]; then
mkdir -p ${PIDDIR}; chown ${RUNASUSER}:root ${PIDDIR}; chmod 0750 ${PIDDIR};
fi
if [ -e ${PIDFILE} ]; then if ! kill -0 $(cat ${PIDFILE}) &> /dev/null; then rm -f $PIDFILE fi fi if [ ! -e ${PIDFILE} ] && get_pid >/dev/null; then get_pid > ${PIDFILE} chown ${RUNASUSER}:root ${PIDFILE} fi
}
do_start() {
RETVAL=1
log_daemon_msg "Starting ${DESC}" "${NAME}" if get_pid >/dev/null; then log_progress_msg "(already running?)" else start-stop-daemon -q -d ${DATADIR} -c $RUNAS --start --background --make-pidfile --pidfile ${PIDFILE} --exec $MONO -- $DAEMON $DAEMON_OPTS RETVAL=$? fi log_end_msg $RETVAL
}
do_stop() {
RETVAL=1
log_daemon_msg “Stopping ${DESC}” “${NAME}”
if ! get_pid >/dev/null; then
log_progress_msg “(not running?)”
else
start-stop-daemon -q --stop --pidfile $PIDFILE --retry 15
RETVAL=$?
fi
log_end_msg $RETVAL
}
Check status of PID
check_pid
case “$1” in
start)
do_start
;;
stop)
do_stop
;;
status)
status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
;;
restart|force-reload)
do_stop;
do_start;
;;
*)
N=/etc/init.d/$NAME
echo “Usage: $0 {start|stop|restart|force-reload}” >&2
exit 1
;;
esac
exit 0