Last change
on this file since c583144 was
828277b,
checked in by Ramón M. Gómez <ramongomez@…>, 5 years ago
|
#983: Avoid error messages in some Cron scripts.
|
-
Property mode set to
100755
|
File size:
830 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | BTTRACK=/usr/bin/bttrack.bittorrent |
---|
3 | BTSEEDER=/usr/bin/btlaunchmany.bittornado |
---|
4 | BTTRACKPORT=6969 |
---|
5 | BTTRACKDFILE=/tmp/dstate |
---|
6 | BTTRACKLOG=/opt/opengnsys/log/bttrack.log |
---|
7 | BTINTERVAL=10 |
---|
8 | BTTORRENTSDIR=/opt/opengnsys/images |
---|
9 | # Desactivar descarga de torrents desde clientes no autorizados. |
---|
10 | BTALLOW_GET=0 |
---|
11 | # parametros basados en EAC 05-04-2009 antonio doblas viso. |
---|
12 | 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 " |
---|
13 | BTTRACKPID="/var/run/bttrack.pid" |
---|
14 | BTSEEDERPID="/var/run/btseeder.pid" |
---|
15 | |
---|
16 | ################### ####################################### |
---|
17 | |
---|
18 | pkill bttrack |
---|
19 | rm -f $BTTRACKDFILE |
---|
20 | sleep 2 |
---|
21 | bttrack $BTTRACK_OPTIONS &>> $BTTRACKLOG & |
---|
Note: See
TracBrowser
for help on using the repository browser.