3 . /srv/cloudstore/init.d/_start_stop
5 eval export `grep $SLICE_GROUP /var/lib/extrausers/group | cut -d: -f4`
6 dir=`grep $SLICE_GROUP /var/lib/extrausers/group | cut -d: -f2`
10 if [ "$1" = "start" ] ; then
12 test -d $dir/torrent/incomplete || mkdir -p $dir/torrent/incomplete
13 test -d $dir/torrent/download || mkdir -p $dir/torrent/download
15 /usr/bin/transmission-daemon \
16 --allowed 127.0.0.1,10.13.37.* \
18 --incomplete-dir $dir/torrent/incomplete/ \
19 --download-dir $dir/torrent/download/ \
20 --logfile $dir/log/$NAME.log \
24 --encryption-preferred \
25 --bind-address-ipv4 $seed_ip \
27 --pid-file /tmp/$NAME.pid \
28 --config-dir $dir/torrent/
32 elif [ "$1" = "stop" ] ; then
33 kill `cat /tmp/$NAME.pid`
34 elif [ "$1" = "reload" ] ; then
35 kill -HUP `cat /tmp/$NAME.pid`