2 ########################################################################
3 # Begin $rc_base/init.d/ipfireseeder
5 # Description : This is a script that starts the torrent-seeder on your
8 # Authors : Michael Tremer (mitch@ipfire.org)
14 ########################################################################
21 boot_mesg
"Starting IPFire Seeder..."
23 loadproc screen
-dmS seeder
-fn su nobody
-c /usr
/bin
/rtorrent
-o port_range
=35700-35705 \
24 /var
/ipfire
/seeder
/*.torrent
25 if ! grep -q "35700:35705" /var
/ipfire
/xtaccess
/config
; then
26 echo "tcp,0.0.0.0/0,35700:35705,on,0.0.0.0,IPFireSeeder" >> /var
/ipfire
/xtaccess
/config
27 /usr
/local
/bin
/setxtaccess
32 boot_mesg "Stopping IPFire Seeder...
"
33 killproc /usr/bin/rtorrent
37 boot_mesg "Reloading IPFire Seeder...
"
38 reloadproc /usr/bin/rtorrent
48 statusproc /usr/bin/rtorrent
52 echo "Usage
: ${0} {start|stop|reload|restart|status
}"
57 # End $rc_base/init.d/ipfireseeder