summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-system/be_check.py
diff options
context:
space:
mode:
Diffstat (limited to 'linhes/linhes-system/be_check.py')
-rwxr-xr-xlinhes/linhes-system/be_check.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/linhes/linhes-system/be_check.py b/linhes/linhes-system/be_check.py
new file mode 100755
index 0000000..1a8dc58
--- /dev/null
+++ b/linhes/linhes-system/be_check.py
@@ -0,0 +1,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)