From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.5 Message-ID: <4AC33D26.5080303@fm.com.ua> Date: Wed, 30 Sep 2009 14:12:38 +0300 From: Yuriy User-Agent: Thunderbird 2.0.0.21 (X11/20090430) MIME-Version: 1.0 To: ALT Linux Community general discussions References: <4AC33BEC.9090801@fm.com.ua> In-Reply-To: <4AC33BEC.9090801@fm.com.ua> Content-Type: multipart/mixed; boundary="------------010706000501070700030400" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ridgeline.websitewelcome.com X-AntiAbuse: Original Domain - lists.altlinux.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - fm.com.ua Subject: Re: [Comm] =?koi8-r?b?y8/EydLP18vBINDSySDawdDV08vFIN7F0sXaIHNjcmVl?= =?koi8-r?b?biDJIGluaXQ=?= X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Community general discussions List-Id: ALT Linux Community general discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Sep 2009 11:13:20 -0000 Archived-At: List-Archive: List-Post: This is a multi-part message in MIME format. --------------010706000501070700030400 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit Блин, забыл скрипт запуска приложить... тут кинул в аттаче... Yuriy пишет: > Здравствуйте, > > Запускаю rtorrent через screen при загрузке системы через init.d > скрипт запуска взял тут: > http://libtorrent.rakshasa.no/raw-attachment/wiki/R.../rtorrentInit.sh > (прилагаю в файле rtorrent.init.txt) > > после загрузки оси (в Х-ах) открываю терминал и набираю screen -r > - появляется окно rtorrent, но закачки с русским названием файлов > показываются крякозябликами. > - выхожу из screen rtorrent (Ctrl+D) и запускаю rtorrent сам по себе - > без скрина - та же история, крякозяблики. проверяю локаль: > [albatross@localhost torrents]$ locale > LANG= > LC_CTYPE="POSIX" > LC_NUMERIC="POSIX" > LC_TIME="POSIX" > LC_COLLATE="POSIX" > LC_MONETARY="POSIX" > LC_MESSAGES="POSIX" > LC_PAPER="POSIX" > LC_NAME="POSIX" > LC_ADDRESS="POSIX" > LC_TELEPHONE="POSIX" > LC_MEASUREMENT="POSIX" > LC_IDENTIFICATION="POSIX" > LC_ALL= > [albatross@localhost torrents]$ > > и соответственно rtorrent всё нормально показывает. > Подскажите пожалуйста, где рыть чтоб исравить это дело? > > screen устанавливал через apt. > -- Система - ALTD 5.0 (прототип) - apt настроен на rpm ftp://ftp.linux.kiev.ua/pub/Linux/ALT/5.0/branch/ i586 classic rpm ftp://ftp.linux.kiev.ua/pub/Linux/ALT/5.0/branch/ noarch classic --------------010706000501070700030400 Content-Type: text/plain; name="rtorrent.init.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="rtorrent.init.txt" [root@localhost ~]# egrep -v \#\|^$ /etc/init.d/rtorrent user="albatross" HOME="/home/albatross" config="`su -c 'echo $HOME' $user`/.rtorrent.rc" echo $config options="" base="`su -c 'echo $HOME' $user`" srnname="rtorrent" logfile="/var/log/rtorrentInit.log" PATH=/usr/bin:/usr/local/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin DESC="rtorrent" NAME=rtorrent DAEMON=$NAME SCRIPTNAME=/etc/init.d/$NAME 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 "$logfile" >&2 exit 3 fi if ! [ -r "${config}" ] ; then echo "cannot find readable config ${config}. check that it is there 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 config ${co nfig}. 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 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 "` kill -s INT ${pid} fi } getsession() { session=`cat "$1" | grep "^[[:space:]]*session[[:space:]]*=" | sed "s/^[[:sp ace:]]*session[[:space:]]*=[[:space:]]*//" ` 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@localhost ~]# --------------010706000501070700030400--