source: repoman/bin/torrent-tracker

qndtest
Last change on this file was 828277b, checked in by Ramón M. Gómez <ramongomez@…>, 4 years ago

#983: Avoid error messages in some Cron scripts.

  • Property mode set to 100755
File size: 830 bytes
Line 
1#!/bin/bash
2BTTRACK=/usr/bin/bttrack.bittorrent
3BTSEEDER=/usr/bin/btlaunchmany.bittornado
4BTTRACKPORT=6969
5BTTRACKDFILE=/tmp/dstate
6BTTRACKLOG=/opt/opengnsys/log/bttrack.log
7BTINTERVAL=10
8BTTORRENTSDIR=/opt/opengnsys/images
9# Desactivar descarga de torrents desde clientes no autorizados.
10BTALLOW_GET=0
11# parametros basados en EAC 05-04-2009 antonio doblas viso.
12BTTRACK_OPTIONS=" --save_dfile_interval $BTINTERVAL --timeout_downloaders_interval $BTINTERVAL --port $BTTRACKPORT --dfile $BTTRACKDFILE --reannounce_interval $BTINTERVAL --logfile $BTTRACKLOG --allowed_dir $BTTORRENTSDIR --allow_get $BTALLOW_GET "
13BTTRACKPID="/var/run/bttrack.pid"
14BTSEEDERPID="/var/run/btseeder.pid"
15
16###################  #######################################
17
18pkill bttrack
19rm -f $BTTRACKDFILE
20sleep 2
21bttrack $BTTRACK_OPTIONS &>> $BTTRACKLOG &
Note: See TracBrowser for help on using the repository browser.