Entry point for rpc server, view templates, rss feeds of node down times,
[monitor.git] / web / MonitorWeb / start-monitorweb.py
diff --git a/web/MonitorWeb/start-monitorweb.py b/web/MonitorWeb/start-monitorweb.py
new file mode 100755 (executable)
index 0000000..b68edbf
--- /dev/null
@@ -0,0 +1,18 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+"""Start script for the MonitorWeb TurboGears project.
+
+This script is only needed during development for running from the project
+directory. When the project is installed, easy_install will create a
+proper start script.
+"""
+
+import sys
+from monitorweb.commands import start, ConfigurationError
+
+if __name__ == "__main__":
+    try:
+        start()
+    except ConfigurationError, exc:
+        sys.stderr.write(str(exc))
+        sys.exit(1)