]> git.llucax.com Git - software/pymin.git/blobdiff - pymind
Use a nice name for exit status.
[software/pymin.git] / pymind
diff --git a/pymind b/pymind
index 2f428b52deda71afee4fbf3294dd0099ef973547..d40c80f3d19dfd7ca3dca3edd6e68688555749ff 100755 (executable)
--- a/pymind
+++ b/pymind
@@ -4,9 +4,12 @@
 import sys
 from pymin.pymindaemon import PyminDaemon
 from pymin.dispatcher import Handler
-from pymin.services import load_service, LoadError
+from pymin.service import load_service, LoadError
 import config
 
+# exit status
+EXIT_NO_SERVICE = 1
+
 class Root(Handler):
     pass
 
@@ -18,7 +21,7 @@ def build_root(config):
             s = load_service(service, config.services_dirs)
         except LoadError, e:
             sys.stderr.write("Can't find service called '%s'\n" % service)
-            sys.exit(1)
+            sys.exit(EXIT_NO_SERVICE)
         services[service] = s
     root = Root()
     for name, service in services.items():