~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to start-loggerhead.py

  • Committer: Michael Hudson
  • Date: 2008-06-18 04:26:13 UTC
  • mto: This revision was merged to the branch mainline in revision 164.
  • Revision ID: michael.hudson@canonical.com-20080618042613-ycnc9nsj7txhdby3
re-enable daemonization, remove require("TurboGears")

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python2.4
2
2
 
3
 
import pkg_resources
4
 
pkg_resources.require("TurboGears")
5
 
 
6
3
import logging
7
4
import os
8
5
import sys
97
94
            value = keytype(value)
98
95
            #turbogears.config.update({ key: value })
99
96
 
100
 
    ## if not options.foreground:
101
 
    ##     sys.stderr.write('\n')
102
 
    ##     sys.stderr.write('Launching loggerhead into the background.\n')
103
 
    ##     sys.stderr.write('PID file: %s\n' % (pidfile,))
104
 
    ##     sys.stderr.write('\n')
 
97
    if not options.foreground:
 
98
        sys.stderr.write('\n')
 
99
        sys.stderr.write('Launching loggerhead into the background.\n')
 
100
        sys.stderr.write('PID file: %s\n' % (pidfile,))
 
101
        sys.stderr.write('\n')
105
102
 
106
 
    ##     daemon.daemonize(pidfile, home)
 
103
        daemon.daemonize(pidfile, home)
107
104
 
108
105
    setup_logging(home, config, foreground=options.foreground)
109
106