diff options
author | adv <adv@uma.es> | 2011-02-23 17:41:35 +0000 |
---|---|---|
committer | adv <adv@uma.es> | 2011-02-23 17:41:35 +0000 |
commit | 8fc955223575738aa38cbca6c2e57f3ce2248c44 (patch) | |
tree | 008de34c83d6df4b44098e72f31eef905754f0d9 /repoman | |
parent | 85e3040b2b9298bea6a60077c59009a2524bbdb2 (diff) |
OG 1.0 ticket:299 instalador
git-svn-id: https://opengnsys.es/svn/branches/version1.0@1479 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'repoman')
-rw-r--r-- | repoman/bin/torrent-tracker | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/repoman/bin/torrent-tracker b/repoman/bin/torrent-tracker new file mode 100644 index 00000000..7714ffda --- /dev/null +++ b/repoman/bin/torrent-tracker @@ -0,0 +1,22 @@ +#!/bin/bash +BTTRACK=/usr/bin/bttrack.bittorrent +BTSEEDER=/usr/bin/btlaunchmany.bittornado +BTTRACKPORT=6969 +BTTRACKDFILE=/tmp/dstate +BTTRACKLOG=/opt/opengnsys/log/bttrack.log +BTINTERVAL=10 +BTTORRENTSDIR=/opt/opengnsys/images +BTALLOW_GET=1 +#BTTRACK_OPTIONS=" --port $BTTRACKPORT --dfile $BTTRACKDFILE --reannounce_interval $BTINTERVAL --logfile $BTTRACKLOG --allowed_dir $BTTORRENTSDIR --allow_get $BTALLOW_GET --parse_allowed_interval 1" +# nuevos parametros basados en EAC 05-04-2009 antonio doblas viso. +BTTRACK_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 " +BTTRACKPID="/var/run/bttrack.pid" +BTSEEDERPID="/var/run/btseeder.pid" + +########################################################## + +pkill bttrack +rm $BTTRACKDFILE +sleep 2 +bttrack $BTTRACK_OPTIONS &>> $BTTRACKLOG & +ps aux | grep bttrack | grep -v grep | awk -F: '{print $3}' |