()
| 94 | |
| 95 | |
| 96 | def main(): |
| 97 | try: |
| 98 | _setup() |
| 99 | return _run_server() |
| 100 | except SystemExit as exit_code: |
| 101 | deregister_service(API) |
| 102 | sys.exit(exit_code) |
| 103 | except Exception: |
| 104 | LOG.exception("(PID=%s) ST2 API quit due to exception.", os.getpid()) |
| 105 | return 1 |
| 106 | finally: |
| 107 | _teardown() |
nothing calls this directly
no test coverage detected