#330: convert stats-gatherer into a .tac file service, add 'tahoe create-stats-gatherer'

This commit is contained in:
Brian Warner
2008-11-18 01:46:20 -07:00
parent 7d68e4397b
commit 8473a96ada
4 changed files with 113 additions and 74 deletions

View File

@ -8,10 +8,11 @@ from twisted.python import usage
pkg_resources.require('allmydata-tahoe')
from allmydata.scripts.common import BaseOptions
import debug, create_node, startstop_node, cli, keygen
import debug, create_node, startstop_node, cli, keygen, stats_gatherer
_general_commands = ( create_node.subCommands
+ keygen.subCommands
+ stats_gatherer.subCommands
+ debug.subCommands
+ cli.subCommands
)
@ -77,6 +78,8 @@ def runner(argv,
rc = cli.dispatch[command](so)
elif command in keygen.dispatch:
rc = keygen.dispatch[command](so, stdout, stderr)
elif command in stats_gatherer.dispatch:
rc = stats_gatherer.dispatch[command](so)
elif command in ac_dispatch:
rc = ac_dispatch[command](so, stdout, stderr)
else: