Example #1
0
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__)
Example #2
0
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__)
Example #3
0
 def run(self):
     logger.setLevel(logging.ERROR)
     server.run(True, 8888)
     logger.setLevel(logging.INFO)