class MyTwistdConfig(twistd.ServerOptions):
- subCommands = [("XYZ", None, usage.Options, "node")]
+ subCommands = [("StartTahoeNode", None, usage.Options, "node")]
-class NodeStartingPlugin:
- tapname = "xyznode"
+class StartTahoeNodePlugin:
+ tapname = "tahoenode"
def __init__(self, nodetype, basedir):
self.nodetype = nodetype
self.basedir = basedir
fileutil.make_dirs(os.path.join(basedir, "logs"))
twistd_args.extend(["--logfile", os.path.join("logs", "twistd.log")])
twistd_args.extend(config.twistd_args)
- twistd_args.append("XYZ") # point at our NodeStartingPlugin
+ twistd_args.append("StartTahoeNode") # point at our StartTahoeNodePlugin
twistd_config = MyTwistdConfig()
try:
print >>err, twistd_config
print >>err, "tahoe start: %s" % (config.subCommand, ue)
return 1
- twistd_config.loadedPlugins = {"XYZ": NodeStartingPlugin(nodetype, basedir)}
+ twistd_config.loadedPlugins = {"StartTahoeNode": StartTahoeNodePlugin(nodetype, basedir)}
# On Unix-like platforms:
# Unless --nodaemon was provided, the twistd.runApp() below spawns off a