~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to start-loggerhead

  • Committer: Martin Albisetti
  • Date: 2009-06-08 23:04:49 UTC
  • mfrom: (356.3.3 deprecate)
  • Revision ID: martin.albisetti@canonical.com-20090608230449-wxg1l04m5ur04dzm
Remove compatibility code with 1.6, bump up minimum required bzrlib to 1.13

Show diffs side-by-side

added added

removed removed

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