Better shutdown of process
This commit is contained in:
1 parent
bfbd3b26a9
commit
088dc5386c
3 files changed
+32
-2
No files matched your search
+2
-1
@@ -85,7 +85,8 @@ class Loader(object):
|
||||
# remove old pidfile first
|
||||
try:
|
||||
if self.runAsDaemon():
|
||||
self.daemon.stop()
|
||||
try: self.daemon.stop()
|
||||
except: pass
|
||||
self.daemon.delpid()
|
||||
except:
|
||||
self.log.critical(traceback.format_exc())
|
||||
|
||||
Reference in new issue
Block a user