~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to start-loggerhead

  • Committer: Michael Hudson
  • Date: 2009-07-15 22:02:09 UTC
  • Revision ID: michael.hudson@canonical.com-20090715220209-ikobhn4ny3e4qiut
for symlinks, point to an icon which actually exists!

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)