Send cluster mode via startup command

This commit is contained in:
Mark Mine 2002-08-09 23:29:13 +00:00
parent 5bc05ea3b0
commit daf0153c6c
2 changed files with 3 additions and 2 deletions

View File

@ -39,10 +39,10 @@ class ClusterClient(DirectObject.DirectObject):
self.daemon.tellServer(serverConfig.serverName,
clusterDaemonPort,
serverCommand)
print 'blah'
print 'Begin waitForServers'
if not self.daemon.waitForServers(len(configList)):
print 'Cluster Client, no response from servers'
print 'post blah'
print 'End waitForServers'
self.qcm=QueuedConnectionManager()
self.serverList = []
self.msgHandler = ClusterMsgHandler(ClusterClient.MGR_NUM, self.notify)

View File

@ -26,6 +26,7 @@ CLUSTER_DAEMON_PORT = 8001
SERVER_STARTUP_STRING = (
'!bash ppython -c ' +
'"import __builtin__; ' +
'__builtin__.clusterMode = \'server\';' +
'__builtin__.clusterServerPort = %s;' +
'__builtin__.clusterSyncFlag = %d;' +
'__builtin__.clusterDaemonClient = \'%s\';' +