Remove pidfile on shutdown
This commit is contained in:
parent
ec9e410659
commit
a14a52fe11
@ -159,3 +159,7 @@ finally:
|
|||||||
"Closing server listening to %s port %s" % (
|
"Closing server listening to %s port %s" % (
|
||||||
server.server_name, server.server_port))
|
server.server_name, server.server_port))
|
||||||
server.shutdown()
|
server.shutdown()
|
||||||
|
|
||||||
|
# remove pidfile
|
||||||
|
if options.pid:
|
||||||
|
os.unlink(options.pid)
|
||||||
|
Loading…
Reference in New Issue
Block a user