ncolony/service.py
def makeService(opt):
    """Return a service based on parsed command-line options

    :param opt: dict-like object. Relevant keys are config, messages,
                pid, frequency, threshold, killtime, minrestartdelay
                and maxrestartdelay
    :returns: service, {twisted.application.interfaces.IService}
    """
    ret = get(config=opt['config'], messages=opt['messages'],
              pidDir=opt['pid'], freq=opt['frequency'])
    pm = ret.getServiceNamed("procmon")
    pm.threshold = opt["threshold"]
    pm.killTime = opt["killtime"]
    pm.minRestartDelay = opt["minrestartdelay"]
    pm.maxRestartDelay = opt["maxrestartdelay"]
    return ret
def makeService(opt):
    ret = get(config=opt['config'], messages=opt['messages'],
              pidDir=opt['pid'], freq=opt['frequency'])
    pm = ret.getServiceNamed("procmon")
    pm.threshold = opt["threshold"]
    pm.killTime = opt["killtime"]
    pm.minRestartDelay = opt["minrestartdelay"]
    pm.maxRestartDelay = opt["maxrestartdelay"]
    return ret
def makeService ( opt ) : ret = get ( config = opt [ 'config' ] , messages = opt [ 'messages' ] , pidDir = opt [ 'pid' ] , freq = opt [ 'frequency' ] ) pm = ret . getServiceNamed ( "procmon" ) pm . threshold = opt [ "threshold" ] pm . killTime = opt [ "killtime" ] pm . minRestartDelay = opt [ "minrestartdelay" ] pm . maxRestartDelay = opt [ "maxrestartdelay" ] return ret
Return a service based on parsed command-line options

    :param opt: dict-like object. Relevant keys are config, messages,
                pid, frequency, threshold, killtime, minrestartdelay
                and maxrestartdelay
    :returns: service, {twisted.application.interfaces.IService}
Return a service based on parsed command - line options