added "u" before uid for create_user
[cloudstore.git] / init.d / s1-seeder
1 #!/bin/sh
2
3 eval export `grep s1 /var/lib/extrausers/group | cut -d: -f4`
4
5 NAME=`basename $0`
6
7 if [ "$1" = "start" ] ; then
8
9 /usr/bin/transmission-daemon \
10 --allowed 127.0.0.1,10.13.37.* \
11 --no-watch-dir \
12 --incomplete-dir /rsync1/s1/torrent/incomplete/ \
13 --download-dir /rsync1/s1/torrent/download/ \
14 --logfile /tmp/$NAME.log \
15 --dht \
16 --lpd \
17 --utp \
18 --peerport 6503 \
19 --encryption-preferred \
20 --bind-address-ipv4 $seed_ip \
21 --no-portmap \
22 --pid-file /tmp/$NAME.pid \
23 --config-dir /rsync1/s1/torrent/
24
25 elif [ "$1" = "stop" ] ; then
26         kill `cat /tmp/$NAME.pid`
27 elif [ "$1" = "reload" ] ; then
28         kill -HUP `cat /tmp/$NAME.pid`
29 fi