Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorBenjamin Saller <bcsaller@objectrealms.net>2007-05-29 16:36:22 (GMT)
committer Benjamin Saller <bcsaller@objectrealms.net>2007-05-29 16:36:22 (GMT)
commitd9758e5ba90d8d044ca80092fee40e80bc6d065b (patch)
tree259933b262b60b00798e6db325274e59f2128c69 /bin
parentc7e590621a4d5cf6347d2e68ef5935c0f97f701a (diff)
added index start line from /bin/datastore
Diffstat (limited to 'bin')
-rwxr-xr-xbin/datastore-service3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/datastore-service b/bin/datastore-service
index aa85b9d..09aa944 100755
--- a/bin/datastore-service
+++ b/bin/datastore-service
@@ -4,6 +4,7 @@ import gobject
import dbus.service
import dbus.mainloop.glib
from olpc.datastore import DataStore, DS_LOG_CHANNEL
+from olpc.datastore.indexer import INDEX_SERVICE, INDEX_OBJECT_PATH
import logging
# Path handling
@@ -32,6 +33,7 @@ logger = logging.getLogger(DS_LOG_CHANNEL)
# build the datastore
dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
+bus = dbus.SessionBus()
ds = DataStore(repo_dir, db_dir)
# and run it
@@ -47,6 +49,7 @@ signal.signal(signal.SIGHUP, handle_shutdown)
signal.signal(signal.SIGTERM, handle_shutdown)
def main():
+ indexer = bus.get_object(INDEX_SERVICE, INDEX_OBJECT_PATH)
try: mainloop.run()
except KeyboardInterrupt:
ds.stop()