source: repoman/bin/torrent-tracker

lgromero-new-oglive
Last change on this file was c28eefa, checked in by Natalia Serrano <natalia.serrano@…>, 19 months ago

Log to syslog in a number of shell scripts

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