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
RevLine 
[8fc9552]1#!/bin/bash
2BTTRACK=/usr/bin/bttrack.bittorrent
3BTSEEDER=/usr/bin/btlaunchmany.bittornado
4BTTRACKPORT=6969
5BTTRACKDFILE=/tmp/dstate
6BTINTERVAL=10
7BTTORRENTSDIR=/opt/opengnsys/images
[6baac83]8# Desactivar descarga de torrents desde clientes no autorizados.
9BTALLOW_GET=0
10# parametros basados en EAC 05-04-2009 antonio doblas viso.
[c28eefa]11BTTRACK_OPTIONS=" --save_dfile_interval $BTINTERVAL --timeout_downloaders_interval $BTINTERVAL --port $BTTRACKPORT --dfile $BTTRACKDFILE --reannounce_interval $BTINTERVAL --allowed_dir $BTTORRENTSDIR --allow_get $BTALLOW_GET "
[8fc9552]12BTTRACKPID="/var/run/bttrack.pid"
13BTSEEDERPID="/var/run/btseeder.pid"
14
[810f6319]15###################  #######################################
[8fc9552]16
[c28eefa]17systemctl --user stop bttrack.service
[828277b]18rm -f $BTTRACKDFILE
[8fc9552]19sleep 2
[c28eefa]20systemd-run --user --unit bttrack.service --wait bttrack $BTTRACK_OPTIONS
Note: See TracBrowser for help on using the repository browser.