Better shutdown of process

This commit is contained in:
Ruud committed 2012-03-10 17:07:19 +01:00
1 parent bfbd3b26a9
commit 088dc5386c
3 files changed
+32 -2

No files matched your search

+2 -1
View File
@@ -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())