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