~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to start-loggerhead

  • Committer: Matt Nordhoff
  • Date: 2009-06-26 09:42:43 UTC
  • Revision ID: mnordhoff@mattnordhoff.com-20090626094243-8ia9poyixoj1en6l
Pass around and use argv correctly

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)