~ubuntuone-hackers/conn-check/trunk

1 by Wes Mason
Import of conn-check from u1
1
#!/usr/bin/python -uWignore
10.1.1 by Wes Mason
Switch to txredis and add password auth
2
"""Check connectivity to various services.
3
"""
1 by Wes Mason
Import of conn-check from u1
4
5
import os
6
7.1.1 by Wes Mason
Add usual package bits, readme, changelog, license, manifest and setup.py.
7
def get_version_string():
8
    return open(os.path.join(os.path.dirname(__file__),
9
                'version.txt'), 'r').read().strip()
10
11
12
def get_version():
13
    return get_version_string().split('.')
14
14.1.1 by James Westby
Refactor to split up conn_check.py.
15
7.1.1 by Wes Mason
Add usual package bits, readme, changelog, license, manifest and setup.py.
16
__version__ = get_version_string()
17
18
14.1.1 by James Westby
Refactor to split up conn_check.py.
19
from twisted.internet import epollreactor
20
epollreactor.install()