~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to start-loggerhead

  • Committer: John Arbash Meinel
  • Date: 2011-02-10 23:05:31 UTC
  • mto: This revision was merged to the branch mainline in revision 426.
  • Revision ID: john@arbash-meinel.com-20110210230531-spb87czp526tljp7
Add a NEWS update, and HACKING commentary about the new code.

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)