#!/bin/sh eval export `grep s1 /var/lib/extrausers/group | cut -d: -f4` NAME=`basename $0` if [ "$1" = "start" ] ; then /usr/bin/transmission-daemon \ --allowed 127.0.0.1,10.13.37.* \ --no-watch-dir \ --incomplete-dir /rsync1/s1/torrent/incomplete/ \ --download-dir /rsync1/s1/torrent/download/ \ --logfile /tmp/$NAME.log \ --dht \ --lpd \ --utp \ --peerport 6503 \ --encryption-preferred \ --bind-address-ipv4 $seed_ip \ --no-portmap \ --pid-file /tmp/$NAME.pid \ --config-dir /rsync1/s1/torrent/ elif [ "$1" = "stop" ] ; then kill `cat /tmp/$NAME.pid` elif [ "$1" = "reload" ] ; then kill -HUP `cat /tmp/$NAME.pid` fi