~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to start-loggerhead.py

  • Committer: Robey Pointer
  • Date: 2007-01-16 03:53:02 UTC
  • Revision ID: robey@lag.net-20070116035302-wzxy5sig3lugvpib
make index_freq a config

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        value = keytype(value)
70
70
        turbogears.config.update({ key: value })
71
71
 
72
 
 
73
72
if not foreground:
74
73
    sys.stderr.write('\n')
75
74
    sys.stderr.write('Launching loggerhead into the background.\n')
87
86
from loggerhead.controllers import Root
88
87
 
89
88
# re-index every 6 hours
90
 
index_freq = 6 * 3600
 
89
 
 
90
index_freq = config.get('cache_rebuild_frequency', 6 * 3600)
91
91
turbogears.scheduler.add_interval_task(initialdelay=1, interval=index_freq, action=Root._check_rebuild)
92
92
 
93
93
try: