3 eval export `grep s1 /var/lib/extrausers/group | cut -d: -f4`
7 if [ "$1" = "start" ] ; then
9 /usr/bin/transmission-daemon \
10 --allowed 127.0.0.1,10.13.37.* \
12 --incomplete-dir /rsync1/s1/torrent/incomplete/ \
13 --download-dir /rsync1/s1/torrent/download/ \
14 --logfile /tmp/$NAME.log \
19 --encryption-preferred \
20 --bind-address-ipv4 $seed_ip \
22 --pid-file /tmp/$NAME.pid \
23 --config-dir /rsync1/s1/torrent/
25 elif [ "$1" = "stop" ] ; then
26 kill `cat /tmp/$NAME.pid`
27 elif [ "$1" = "reload" ] ; then
28 kill -HUP `cat /tmp/$NAME.pid`