~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to start-loggerhead

  • Committer: John Arbash Meinel
  • Date: 2010-04-27 15:45:52 UTC
  • mfrom: (411.1.1 tag_cache)
  • Revision ID: john@arbash-meinel.com-20100427154552-ebb7psd96xwmgo0e
Cache the Branch reverse-tag dict, since Branch does not.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
 
22
22
import logging
23
 
import logging.handlers
24
23
from optparse import OptionParser
25
24
import os
26
25
import sys
35
34
 
36
35
from loggerhead import daemon
37
36
from loggerhead.apps.config import Root
38
 
from loggerhead.trace import make_handler, setup_logging
 
37
from loggerhead.trace import setup_logging
39
38
from loggerhead.apps.error import ErrorHandlerApp
40
39
 
41
40
 
103
102
    if not options.foreground:
104
103
        sys.stderr.write('\n')
105
104
        sys.stderr.write('Launching loggerhead into the background.\n')
106
 
        sys.stderr.write('PID file: %s\n' % options.pidfile)
 
105
        sys.stderr.write('PID file: %s\n' % (options.pidfile,))
107
106
        sys.stderr.write('\n')
108
107
 
109
108
        daemon.daemonize(options.pidfile, home)