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