def restart(state, host, ctid, force=False):
    '''
    Restart OpenVZ containers.

    + ctid: CTID of the container to restart
    + force: whether to force container start
    '''

    yield stop(state, host, ctid)
    yield start(state, host, ctid, force=force)
def restart ( state , host , ctid , force = False ) : yield stop ( state , host , ctid ) yield start ( state , host , ctid , force = force )
Restart OpenVZ containers.

    + ctid: CTID of the container to restart
    + force: whether to force container start