def run_standalone():
    import signal
    
    funcs = []
    
    signal.signal(signal.SIGTERM, sigterm_handler)
    
    funcs.append(setup(('app', 8380)))
    funcs.append(setup(('app', 8381)))
    funcs.append(setup(('app', 8382)))
    funcs.append(setup(('app', 8383, dict(ssl=True))))
    
    for setup_func, teardown_func in funcs:
        setup_func(sys.modules[__name__])
    
    sys.stdout.write("Running, use SIGTERM or SIGINT to stop\n")
    
    try:
        while not quit:
            time.sleep(1)
    except __HOLE__:
        pass
    
    for setup_func, teardown_func in funcs:
        teardown_func(sys.modules[__name__])
dataset/ETHPy150Open cloudaice/simple-data/misc/virtenv/share/doc/pycurl/tests/appmanager.py/run_standalone