~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to stop-loggerhead

  • Committer: Martin Albisetti
  • Date: 2008-10-24 17:54:06 UTC
  • mfrom: (230.1.2 pep8)
  • Revision ID: martin.albisetti@canonical.com-20081024175406-73bpc73m7pshat9c
PEP8 fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
default_pidfile = os.path.join(home, 'loggerhead.pid')
24
24
parser = OptionParser(usage='usage: %prog [options]', version='%prog')
25
25
parser.add_option('-p', '--pidfile', dest="pidfile", default=default_pidfile,
26
 
                                  help="override pidfile location")
 
26
                  help="override pidfile location")
27
27
 
28
28
options, args = parser.parse_args()
29
29
if len(args) > 0:
30
 
        parser.error('No filename arguments are used, only options.')
 
30
    parser.error('No filename arguments are used, only options.')
31
31
 
32
32
try:
33
33
    f = open(options.pidfile, 'r')
44
44
    sys.exit(1)
45
45
 
46
46
print
47
 
print 'Shutting down previous server @ pid %d.' % (pid,)
 
47
print 'Shutting down previous server @ pid %d.' % pid
48
48
print
49
49
 
50
50
import signal