예제 #1
0
파일: __init__.py 프로젝트: a0x/lilac
def main():
    dct = docopt(__doc__)
    # set logger level to info
    logger.setLevel(logging.INFO)

    if dct["start"]:
        lilac_daemon.start()
    elif dct["stop"]:
        lilac_daemon.stop()
    elif dct["restart"]:
        lilac_daemon.restart()
    else:
        exit(__doc__)
예제 #2
0
파일: __init__.py 프로젝트: jincheng/lilac
def main():
    dct = docopt(__doc__)
    # set logger level to info
    logger.setLevel(logging.INFO)

    if dct["start"]:
        lilac_daemon.start()
    elif dct["stop"]:
        lilac_daemon.stop()
    elif dct["restart"]:
        lilac_daemon.restart()
    elif dct["status"]:
        lilac_daemon.status()
    else:
        exit(__doc__)
예제 #3
0
파일: __init__.py 프로젝트: jincheng/lilac
 def run(self):
     logger.setLevel(logging.ERROR)
     server.run(True, 8888)
     logger.setLevel(logging.INFO)