diff options
Diffstat (limited to 'linhes/linhes-system/be_check.py')
-rwxr-xr-x | linhes/linhes-system/be_check.py | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/linhes/linhes-system/be_check.py b/linhes/linhes-system/be_check.py index b5f7a64..1a8dc58 100755 --- a/linhes/linhes-system/be_check.py +++ b/linhes/linhes-system/be_check.py @@ -2,33 +2,10 @@ #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 -class Logger(object): - def __init__(self, filename="/tmp/Default.log"): - #self.terminal = sys.stdout - try: - self.log = open(filename, "a") - except: - pass - - def write(self, message): - try: - #self.terminal.write(message) - self.log.write(message) - except: - pass - -sys.stdout = Logger("/tmp/be_check.log") - - from MythTV import MythBE,MythDB -#import datetime,time,sys,subprocess - - - - try: - be=MythBE() + be = MythBE() db = MythDB() except: sys.exit(1) |