Only remove pid file if started as daemon
This commit is contained in:
parent
4acc9effb8
commit
303dc4d312
@ -161,5 +161,5 @@ finally:
|
||||
server.shutdown()
|
||||
|
||||
# remove pidfile
|
||||
if options.pid:
|
||||
if options.pid and options.daemon:
|
||||
os.unlink(options.pid)
|
||||
|
Loading…
Reference in New Issue
Block a user