예제 #1
0
파일: run.py 프로젝트: binRick/dmon-py
def main():
    if os.geteuid() != 0:
        print 'must run as root'
        sys.exit(1)
    if not check_commands(CMDS):
        sys.exit(1)

    webapp.run(app, host='0.0.0.0', port=settings.API_PORT)
예제 #2
0
파일: run.py 프로젝트: jererc/dmon-py
def main():
    if os.geteuid() != 0:
        print 'must run as root'
        sys.exit(1)
    if not check_commands(CMDS):
        sys.exit(1)

    webapp.run(app, host='0.0.0.0', port=settings.API_PORT)
예제 #3
0
파일: api.py 프로젝트: jererc/mist-py
def run():
    webapp.run(app, host='0.0.0.0', port=settings.API_PORT)