~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to start-loggerhead

  • Committer: Matt Nordhoff
  • Date: 2009-04-18 06:30:47 UTC
  • mto: (389.2.2 pep8-2009-10)
  • mto: This revision was merged to the branch mainline in revision 392.
  • Revision ID: mnordhoff@mattnordhoff.com-20090418063047-v68pe52izncnylze
Clean up some unused imports and syntax things.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
# along with this program; if not, write to the Free Software
14
14
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
15
15
 
16
 
"""
17
 
WARNING! This script has been deprecated and will go away soon!
18
 
A script for starting the loggerhead process.
19
 
"""
 
16
"""A script for starting the loggerhead process."""
20
17
 
21
18
 
22
19
import logging
23
 
import logging.handlers
24
20
from optparse import OptionParser
25
21
import os
26
22
import sys
35
31
 
36
32
from loggerhead import daemon
37
33
from loggerhead.apps.config import Root
38
 
from loggerhead.trace import make_handler, setup_logging
 
34
from loggerhead.trace import setup_logging
39
35
from loggerhead.apps.error import ErrorHandlerApp
40
36
 
41
37
 
42
38
def main():
43
 
    sys.stderr.write('\n\n')
44
 
    sys.stderr.write('WARNING!!! This script has been deprecated by '
45
 
                     'serve-branches, and will be removed in the next '
46
 
                     'release. Please migrate to serve-branches and report '
47
 
                     'any missing features.\n')
48
 
    sys.stderr.write('\n\n')
49
 
 
50
39
    home = os.path.realpath(os.path.dirname(__file__))
51
40
    default_pidfile = os.path.join(home, 'loggerhead.pid')
52
41
    default_configfile = os.path.join(home, 'loggerhead.conf')