summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-system/be_check.py
blob: 1a8dc585ca8861e869acace326fce70eb19c7033 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/python
#simple program to check if mythbackend is up and running
#exit code of 0 is success, anything else means it can't connect
import sys
from MythTV import MythBE,MythDB

try:
    be = MythBE()
    db = MythDB()
except:
    sys.exit(1)
sys.exit(0)