summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey C. Ollie <jeff@ocjtech.us>2008-08-19 21:32:55 -0500
committerJeffrey C. Ollie <jeff@ocjtech.us>2008-08-19 21:32:55 -0500
commit288a20d39dba44f995c8167c48b7b8160621af70 (patch)
tree5f9cee6f13a8c456bda3fb2413e459c4300a7cf1
parente9d0fa5d0705d13ca143a1e1c41d3e304e68b0ce (diff)
downloadnohgooee-288a20d39dba44f995c8167c48b7b8160621af70.tar.gz
nohgooee-288a20d39dba44f995c8167c48b7b8160621af70.tar.xz
nohgooee-288a20d39dba44f995c8167c48b7b8160621af70.zip
More elimination.
-rwxr-xr-xnohgooee-seed72
-rwxr-xr-xnohgooee-seed.init72
-rw-r--r--public.keybin478 -> 0 bytes
3 files changed, 0 insertions, 144 deletions
diff --git a/nohgooee-seed b/nohgooee-seed
deleted file mode 100755
index e650d6d..0000000
--- a/nohgooee-seed
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/usr/bin/env python
-
-# The contents of this file are subject to the BitTorrent Open Source License
-# Version 1.1 (the License). You may not copy or use this file, in either
-# source code or executable form, except in compliance with the License. You
-# may obtain a copy of the License at http://www.bittorrent.com/license/.
-#
-# Software distributed under the License is distributed on an AS IS basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-
-# Written by John Hoffman
-
-if __name__ == '__main__':
- from NohGooee.platform import install_translation
- install_translation()
-
-import sys
-import os
-
-from NohGooee.launchmanycore import LaunchMany
-from NohGooee.defaultargs import get_defaults
-from NohGooee.parseargs import parseargs, printHelp
-from NohGooee import configfile
-from NohGooee import version
-from NohGooee import BTFailure
-
-exceptions = []
-
-class HeadlessDisplayer:
- def display(self, data):
- print ''
- if not data:
- self.message(_("no torrents"))
- for x in data:
- ( name, status, progress, peers, seeds, seedsmsg, dist,
- uprate, dnrate, upamt, dnamt, size, t, msg ) = x
- print '"%s": "%s" (%s) - %sP%s%s%.3fD u%0.1fK/s-d%0.1fK/s u%dK-d%dK "%s"' % (
- name, status, progress, peers, seeds, seedsmsg, dist,
- uprate/1000, dnrate/1000, upamt/1024, dnamt/1024, msg)
- return False
-
- def message(self, s):
- print "### "+s
-
- def exception(self, s):
- exceptions.append(s)
- self.message(_("SYSTEM ERROR - EXCEPTION GENERATED"))
-
-
-if __name__ == '__main__':
- uiname = 'launchmany-console'
- defaults = get_defaults(uiname)
- try:
- if len(sys.argv) < 2:
- printHelp(uiname, defaults)
- sys.exit(1)
- config, args = configfile.parse_configuration_and_args(defaults,
- uiname, sys.argv[1:], 0, 1)
- if args:
- config['torrent_dir'] = args[0]
- if not os.path.isdir(config['torrent_dir']):
- raise BTFailure(_("Warning: ")+args[0]+_(" is not a directory"))
- except BTFailure, e:
- print _("error: %s\nrun with no args for parameter explanations") % str(e)
- sys.exit(1)
-
- LaunchMany(config, HeadlessDisplayer(), 'launchmany-console')
- if exceptions:
- print _("\nEXCEPTION:")
- print exceptions[0]
diff --git a/nohgooee-seed.init b/nohgooee-seed.init
deleted file mode 100755
index 7214eed..0000000
--- a/nohgooee-seed.init
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/bin/bash
-#
-# chkconfig: - 16 84
-# description: Start up seed clients for BitTorrent
-#
-# processname: btseed
-# config: /etc/sysconfig/bittorrent
-
-# source function library
-. /etc/rc.d/init.d/functions
-
-# Get network config
-#. /etc/sysconfig/network
-
-# Check that networking is up.
-[ "${NETWORKING}" = "no" ] && exit 0
-
-# default directory for torrents to seed
-SEEDDIR=/var/lib/bittorrent/data
-
-# default log file
-SEEDLOG=/var/log/btseed.log
-
-# source the config
-. /etc/sysconfig/bittorrent
-
-RETVAL=0
-prog="/usr/bin/btseed"
-btuser="torrent"
-btgroup="torrent"
-
-case "$1" in
- start)
- echo -n $"Starting BitTorrent seed client: "
- /sbin/runuser -s /bin/sh -c "$prog $SEEDOPTS $SEEDDIR" $btuser >> $SEEDLOG 2>&1 &
- disown -ar
- usleep 500000
- status btseed &> /dev/null && echo_success || echo_failure
- RETVAL=$?
- [ $RETVAL -eq 0 ] && touch /var/lock/subsys/btseed
- echo
- ;;
- stop)
- echo -n $"Shutting down BitTorrent seed client: "
- killproc $prog
- #killproc "/usr/bin/python $prog"
- RETVAL=$?
- [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/btseed
- echo
- ;;
- restart|reload)
- $0 stop
- $0 start
- RETVAL=$?
- ;;
- condrestart)
- if [ -f /var/lock/subsys/btseed ]; then
- $0 stop
- $0 start
- fi
- RETVAL=$?
- ;;
- status)
- status btseed
- RETVAL=$?
- ;;
- *)
- echo $"Usage: $0 {start|stop|restart|reload|condrestart|status}"
- exit 1
-esac
-
-exit $RETVAL
diff --git a/public.key b/public.key
deleted file mode 100644
index 48ec5a6..0000000
--- a/public.key
+++ /dev/null
Binary files differ