~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to stop-loggerhead

  • Committer: Martin Albisetti
  • Date: 2008-08-06 19:20:22 UTC
  • mfrom: (197.2.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 203.
  • Revision ID: argentina@gmail.com-20080806192022-em2ncft1wv1ldxpe
Misplaced fix syntax patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
import sys
20
20
from optparse import OptionParser
21
21
 
 
22
from loggerhead import release
 
23
 
22
24
home = os.path.realpath(os.path.dirname(__file__))
23
25
default_pidfile = os.path.join(home, 'loggerhead.pid')
24
 
parser = OptionParser(usage='usage: %prog [options]', version='%prog')
 
26
parser = OptionParser(usage='usage: %prog [options]', version='%prog ' + release.version)
25
27
parser.add_option('-p', '--pidfile', dest="pidfile", default=default_pidfile,
26
28
                                  help="override pidfile location")
27
29