Remove pidfile on shutdown

This commit is contained in:
Pieter Naaijkens 2011-06-07 21:57:00 +02:00
parent ec9e410659
commit a14a52fe11

View File

@ -159,3 +159,7 @@ finally:
"Closing server listening to %s port %s" % (
server.server_name, server.server_port))
server.shutdown()
# remove pidfile
if options.pid:
os.unlink(options.pid)