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

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