~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to stop-loggerhead

  • Committer: Matt Nordhoff
  • Date: 2009-05-17 11:10:38 UTC
  • mto: (346.2.1 serve-directory)
  • mto: This revision was merged to the branch mainline in revision 350.
  • Revision ID: mnordhoff@mattnordhoff.com-20090517111038-26vo32le1dyp42lh
Fix 'bzr serve --http' (bug #377551).

I also added an optional 'argv' argument to LoggerheadConfig, defaulting to sys.argv[1:] like it used to do.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
try:
33
33
    f = open(options.pidfile, 'r')
34
34
except IOError, e:
35
 
    print 'Pid file %s not found.' % (options.pidfile,)
 
35
    print 'Pid file %s not found.' % options.pidfile
36
36
    sys.exit(1)
37
37
 
38
38
pid = int(f.readline())
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