I dont know why but when i try to stop rtorrent with "/opt/etc/init.d/S99rtorrent stop" even if i get the message "Stopping rtorrent: rtorrent." rtorrent is still working.
I dont know why but when i try to stop rtorrent with "/opt/etc/init.d/S99rtorrent stop" even if i get the message "Stopping rtorrent: rtorrent." rtorrent is still working.
ah... it is this random problem, that rtorrent doesnt recognizes every torrent file... it's still working:p
are you using the first or second how-to in this thread?
can you see all your running processes with:
orQuote:
ps
if "ps afx" is the case, you shouldn't have changed the ps option;)Quote:
ps afx
(at least... I guess:p)
i use second guide and i see the process with "ps axf". I will try to restore to see if that is the problem.
If you updated your rtorrent to version 0.8.4 you'll notice that it won't except the scheduled ratio check,
this is because it has now been built in and only the values have to be set.
So you can quote or remove that schedule and use the settings below
Here is a basic example
-first it enables ratio check
-sets the min and max ratios (1,0 and 2,0) also 20MB
-when the ratio is attained it triggers some commands
You can read more on the rtorrent site, on working with different groups of torrentsQuote:
# Enable the default ratio group.
ratio.enable=
# Change the limits, the defaults should be sufficient.
ratio.min.set=100
ratio.max.set=200
ratio.upload.set=20M
# Changing the command triggered when the ratio is reached.
system.method.set = group.seeding.ratio.command, d.close=, d.erase=
(i.e. fast and slow lanes :))
http://libtorrent.rakshasa.no/wiki/R...tRatioHandling
Thx for the howto
I had all but given up on running torrents on my box
Transmission kept on crashing the server or was slowing
down the samba to a crawl, ctorrent was no better
But the rtorrent and ntorrent combo really works great
Just for test purpose the first torrent was debian
did a reboot 3/4 of the way and a hash check took about 1h
but all the files where still there unlike transmission where
some percentage always got lost in the reboot.
My box still runs stable even with the sftp, samba, etc.
Thx again t68kv
problem with units(download/upload speed) Kb = kB, it's very confusing, did you thing?
Well, I did everything just as the gouryella's tutorial said, and I'm getting 'Connection reset' when I try to connect through nTorrent. Any idea?
Hi, i checked my tutorial today, clean install to my new 32GB flash drive and it's working fine.
please repeat tutorial again, i make some changes in.
ipkg remove rtorrent before
try manually start and watch for errors:
Code:rtorrent -n -o import=/opt/etc/rtorrent.conf
Hello gouryella
can you please check what the hell happens to you upgrading with ipkg to the latest rtorrent_0.8.4-2_mipsel.ipk ?
Mine doesn't start automatically at every reboot as before, but if I start manually using sh /opt/etc/init.d/S99rtorrent start it works fine... :(
No need to change S99rtorrent in the new startup file.
Thanks
Max
PROBLEM SOLVED:
I replaced at the very beginning of S99rtorrent the line
withQuote:
#!/opt/bin/bash
Quote:
#!/bin/sh
hi,
yesterday i start downloading a torrent (here), at that time, it was making progress. a few hours later i turned off the router. today i turned it on and opened ntorrent. i found it's stuck at checking hash. the icon showed it's checking hash, but it's not making any progress. see the picture "ntorrent.png".
i execute "rtorrent -n -o import=/opt/etc/rtorrent.conf" to see if something's wrong, nothing wrong. i entered the rtorrent console and see it checking hash. see picture "ssh.png".
all the files in the torrent total 13GB, my /tmp/harddisk partition has only 7GB, but i turned most of the files "off" in ntorrent. does this matter?
anyone help me out, please?
Delete session files (/opt/share/torrent/session), but you must manually add all torrents again / or copy *.torrents to dl.
Hash will be checked again, it takes lot of time.
Mmmmm... just ipkg upraded to rtorrent 0.8.5-1...
it seems is running correctly but I'm not able to connect from nTorrent.... :mad:
after update to latest version, rtorrent don't start automatic
mine works fine:confused:
got this as start script:
Code:#!/opt/bin/bash
############################################################################
#Optware package of rtorrent uses non-standard layout of directories. ##
#Uncomment the following line to switch to the default layout of rtorrent.##
############################################################################
#dirlayout="RTORRENT_DEFAULT"
#############
###<Notes>###
#############
# This script depends on screen.
# For the stop function to work, you must set an
# explicit session directory using ABSOLUTE paths (no, ~ is not absolute) in you r rtorrent.rc.
# If you typically just start rtorrent with just "rtorrent" on the
# command line, all you need to change is the "user" option.
# Attach to the screen session as your user with
# "screen -dr rtorrent". Change "rtorrent" with srnname option.
# Licensed under the GPLv2 by lostnihilist: lostnihilist _at_ gmail _dot_ com
##############
###</Notes>###
##############
#######################
##Start Configuration##
#######################
# You can specify your configuration in a different file
# (so that it is saved with upgrades, saved in your home directory,
# or whateve reason you want to)
# by commenting out/deleting the configuration lines and placing them
# in a text file (say /home/user/.rtorrent.init.conf) exactly as you would
# have written them here (you can leave the comments if you desire
# and then uncommenting the following line correcting the path/filename
# for the one you used. note the space after the ".".
# . /etc/rtorrent.init.conf
#Do not put a space on either side of the equal signs e.g.
# user = user
# will not work
# system user to run as
user="root"
# the system group to run as, not implemented, see d_start for beginning impleme ntation
# group=`id -ng "$user"`
prefix="/opt"
# the full path to the filename where you store your rtorrent configuration
if [ "${dirlayout}" = "RTORRENT_DEFAULT" ] ; then
config="${prefix}/home/${user}/.rtorrent.rc"
else
config="/opt/etc/rtorrent.conf"
fi
# set of options to run with
if [ "${dirlayout}" = "RTORRENT_DEFAULT" ] ; then
options=""
else
options="-n -o import=${config}"
fi
# default directory for screen, needs to be an absolute path
if [ "${dirlayout}" = "RTORRENT_DEFAULT" ] ; then
base="${prefix}/home/${user}"
else
base="/opt/share/torrent"
fi
# name of screen session
srnname="rtorrent"
# file to log to (makes for easier debugging if something goes wrong)
logfile="/opt/var/log/rtorrentInit.log"
#######################
###END CONFIGURATION###
#######################
PATH=/opt/bin:/opt/sbin:/usr/bin:/sbin:/bin:/usr/sbin
DESC="rtorrent"
NAME=rtorrent
DAEMON=$NAME
SCRIPTNAME=/etc/init.d/$NAME
# Do not proceed unless some apps are available.
test -x /opt/bin/screen || ( echo "screen not found." | tee -a "$logfile" >&2 ; exit 2 )
test -x /opt/bin/su -o -x /bin/su || ( echo "su not found." | tee -a "$logfile" >&2 ; exit 2 )
checkcnfg() {
exists=0
for i in `echo "$PATH" | tr ':' '\n'` ; do
if [ -f "$i/$NAME" ] ; then
exists=1
break
fi
done
if [ $exists -eq 0 ] ; then
echo "cannot find rtorrent binary in PATH $PATH" | tee -a "$logf ile" >&2
exit 3
fi
if ! [ -r "${config}" ] ; then
echo "cannot find readable config ${config}. check that it is th ere and permissions are appropriate" | tee -a "$logfile" >&2
exit 3
fi
session=`getsession "$config"`
if ! [ -d "${session}" ] ; then
echo "cannot find readable session directory ${session} from con fig ${config}. check permissions" | tee -a "$logfile" >&2
exit 3
fi
}
d_start() {
[ -d "${base}" ] && cd "${base}"
stty stop undef && stty start undef
su -c "screen -ls | grep -sq "\.${srnname}[[:space:]]" " ${user} || su -c "scr een -dm -S ${srnname} 2>&1 1>/dev/null" ${user} | tee -a "$logfile" >&2
# this works for the screen command, but starting rtorrent below adopts screen session gid
# even if it is not the screen session we started (e.g. running under an undes irable gid
#su -c "screen -ls | grep -sq "\.${srnname}[[:space:]]" " ${user} || su -c "sg \"$group\" -c \"screen -fn -dm -S ${srnname} 2>&1 1>/dev/null\"" ${user} | tee -a "$logfile" >&2
su -c "screen -S "${srnname}" -X screen rtorrent ${options} 2>&1 1>/dev/null" ${user} | tee -a "$logfile" >&2
}
d_stop() {
session=`getsession "$config"`
if ! [ -s ${session}/rtorrent.lock ] ; then
return
fi
pid=`cat ${session}/rtorrent.lock | awk -F: '{print($2)}' | sed "s/[^0-9 ]//g"`
if ps | grep -sq ${pid}.*rtorrent ; then # make sure the pid doesn't bel ong to another process
kill -s INT ${pid}
fi
}
getsession() {
session=`awk '/^[[:space:]]*session[[:space:]]*=[[:space:]]*/{print($3)} ' "$config"`
echo $session
}
checkcnfg
case "$1" in
start)
echo -n "Starting $DESC: $NAME"
d_start
echo "."
;;
stop)
echo -n "Stopping $DESC: $NAME"
d_stop
echo "."
;;
restart|force-reload)
echo -n "Restarting $DESC: $NAME"
d_stop
sleep 1
d_start
echo "."
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
[root@wpte root]$ clear
'xterm': unknown terminal type.
[root@wpte root]$ clean
-sh: clean: not found
[root@wpte root]$ screen
/opt/var/run/utmp: No such file or directory
getsession() {
session=`awk '/^[[:space:]]*session[[:space:]]*=[[:space:]]*/{print($3)}' "$config"`
echo $session
}
checkcnfg
case "$1" in
start)
echo -n "Starting $DESC: $NAME"
d_start
echo "."
;;
stop)
echo -n "Stopping $DESC: $NAME"
d_stop
echo "."
;;
restart|force-reload)
echo -n "Restarting $DESC: $NAME"
d_stop
sleep 1
d_start
echo "."
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
I can successfully start rtorrent (as seen in ps), but the torrents never start dl. Anybody know how to resolve?