python/samples/ops.py
def stop(ServiceName):
    '''
        Desc: Stop GameServer
 
        CLI Example:
                opsmod.py ServiceName stop
    '''    
    pid = srv_pidfile[ServiceName]
    cmd = srv_down[ServiceName]
    logging.info('{0} stop'.format(ServiceName))  
    if os.path.exists(pid):
        proc = Popen(cmd, shell=True)
        return G('Stop GameServer is running...,please wait !')
    else:
        return R('GameServer is already stopped !')

        Desc: Stop GameServer
 
        CLI Example:
                opsmod.py ServiceName stop
    
Stop GameServer
CLI Example:
opsmod.py ServiceName stop
Stop GameServer CLI Example : opsmod . py ServiceName stop
def stop(ServiceName):
    pid = srv_pidfile[ServiceName]
    cmd = srv_down[ServiceName]
    logging.info('{0} stop'.format(ServiceName))  
    if os.path.exists(pid):
        proc = Popen(cmd, shell=True)
        return G('Stop GameServer is running...,please wait !')
    else:
        return R('GameServer is already stopped !')
def stop ( ServiceName ) : pid = srv_pidfile [ ServiceName ] cmd = srv_down [ ServiceName ] logging . info ( '{0} stop' . format ( ServiceName ) ) if os . path . exists ( pid ) : proc = Popen ( cmd , shell = True ) return G ( 'Stop GameServer is running...,please wait !' ) else : return R ( 'GameServer is already stopped !' )
Desc: Stop GameServer
CLI Example:
opsmod.py ServiceName stop
Desc : Stop GameServer CLI Example : opsmod . py ServiceName stop
'''
        Desc: Stop GameServer
 
        CLI Example:
                opsmod.py ServiceName stop
    '''
ServiceName