I just followed the instructions in the README inside the source file downloaded ftom http://download.deluge-torrent.org/source/1.1.3/
Code: Select all
sudo apt-get install g++ make python-all-dev python-all python-dbus \
python-gtk2 python-notify librsvg2-common python-xdg python-support \
subversion libboost-dev libboost-python-dev libboost-iostreams-dev \
libboost-thread-dev libboost-date-time-dev libboost-filesystem-dev \
libboost-serialization-dev libssl-dev zlib1g-dev python-setuptools
The names of the packages may vary depending on your OS / distro.
Once you have the needed libraries installed, build and install by running:
$ python setup.py build
$ sudo python setup.py install
Then, i created the file under /etc/rc.d/deluged with this content:
Code: Select all
#!/bin/sh
# Headless deluge startup script
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DELUGE="/usr/bin/deluge"
DELUGE_OPTIONS="-u web"
USER="myusername" #Please change
DELUGEDAEMON="/usr/bin/deluged"
DESC1="Deluge Daemon"
DESC2="WebUi"
NAME1="deluged"
NAME2="Deluge webserver"
set -e
case "$1" in
start)
echo -n "Starting $DESC1 : "
start-stop-daemon -c $USER --start --background --quiet --exec $DELUGEDAEMON
echo "$NAME1"
sleep 2
echo -n "Starting $DESC2 : "
start-stop-daemon -c $USER --start --background --quiet --exec $DELUGE -- ${DELUGE_OPTIONS}
echo "$NAME2"
;;
stop)
echo -n "Stopping $DESC1 : "
PIDDELUGE=`ps ax |grep deluged |sed -n 1p |awk '{print $1}'`
kill $PIDDELUGE
echo "$NAME1."
echo -n "Stopping $DESC2 : "
PIDWEB=`ps ax |grep deluge |sed -n 2p |awk '{print $1}'`
kill $PIDWEB
echo "$NAME2."
;;
*)
N=deluge-daemon
echo "Usage: $N {start|stop|restart}" >&2
exit 1
;;
esac
exit 0
Deluge starts properly and i connect to the web interface without any problem... i add some torrents and so... but sometimes, unexpectedly, the daemon just stops working suddenly... and i have to restart the whole daemon again.. it has to do file chechking for the torrents that were downloading in the moment of the crash and so...
Can anyone tell me how to get a backtrace or an error report for knowing what exactly happens everytime deluge crashes?
I also want to share this outputs here for getting deluge daemon and web interface better (even that what it already is )
Thank you very much!!