View Single Post
  #4   (View Single Post)  
Old 29th September 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 320
Default

Quote:
Originally Posted by Jmdbh View Post
I use rTorrent and rtgui a lot, although it has some drawbacks. The first is that the version of xmlrpc-c used with rTorrent on FreeBSD does not support 64 bit integers. You will recognize this by negative traffic shown in rtgui. You will have to get the latest version of xmlrpc-c from the developer's subversion repository and hack the rtorrent port.

Furthermore for rTorrent and rtgui you may want to start it automatically on system startup. Use the following startup script (place it in /usr/local/etc/rc.d/ and set rtorrent_enable=YES in your rc.conf):

It requires the sysutils/screen port.

Code:
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: rtorrent
# REQUIRE: DAEMON
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
# SET THEM IN THE /etc/rc.conf FILE
#

. /etc/rc.subr

name="rtorrent"
rcvar=`set_rcvar`

load_rc_config $name

: ${rtorrent_enable="NO"}
: ${rtorrent_user="your user"}
: ${rtorrent_config="/usr/home/your user/.rtorrent.rc"}

rtorrent_flags="-n -o import=${rtorrent_config} ${rtorrent_flags}"

command="/usr/local/bin/screen"
flags="-d -m rtorrent ${rtorrent_flags}"
procname="rtorrent"

run_rc_command "$1"
Thanks
Can you write nice howto for run rtGUI in FreeBSD , I search with google but I can not find good howto
all of them are about Linux
Reply With Quote