Changeset 9875 for main


Ignore:
Timestamp:
13 Jan 2013, 02:14:19 (12 years ago)
Author:
uli
Message:

Enable new modes and consider async ZODBs when removing old instance data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.stress/trunk/src/waeup/stress/__init__.py

    r8748 r9875  
    6060    for filename in os.listdir(filestorage_dir):
    6161        if filename in ['Data.fs', 'Data.fs.tmp', 'Data.fs.index',
    62                         'Data.fs.lock']:
     62                        'Data.fs.lock',
     63                        'Data.async.fs', 'Data.async.fs.index',
     64                        'Data.async.fs.tmp', 'Data.async.fs.lock']:
    6365            filepath = os.path.join(filestorage_dir,  filename)
    6466            print "  removing %s" % filepath
     
    8890            './bin/paster serve --daemon parts/etc/profile.ini', shell=True)
    8991    elif mode == 'zeo':
    90         os.listdir('./bin')
    9192        subprocess.call('./bin/zeo_server start', shell=True)
    9293        subprocess.call('./bin/zeo_client1 start', shell=True)
    9394        subprocess.call('./bin/zeo_client2 start', shell=True)
     95    elif mode == 'profile':
     96        subprocess.call(
     97            './bin/paster serve --daemon parts/etc/profile.ini', shell=True)
    9498    else:
    9599        # by default we start paster as daemon
     
    128132    directory.
    129133
    130     `mode` can be one of `paster`|`kofactl` and tells which tool to
    131     use to stop the instance.
     134    `mode` can be one of `paster`|`kofactl`|`zeo`|`profile` and tells
     135    which tool to use to stop the instance.
    132136    """
    133137    path = instances[name]
Note: See TracChangeset for help on using the changeset viewer.