Only remove pid file if started as daemon

This commit is contained in:
Pieter Naaijkens 2011-06-07 22:24:04 +02:00
parent 4acc9effb8
commit 303dc4d312

View File

@ -161,5 +161,5 @@ finally:
server.shutdown()
# remove pidfile
if options.pid:
if options.pid and options.daemon:
os.unlink(options.pid)