Try and stop running daemon first

This commit is contained in:
Ruud
2012-03-06 07:55:30 +01:00
parent f2b1c6b688
commit d0aca61165
+1
View File
@@ -85,6 +85,7 @@ class Loader(object):
# remove old pidfile first
try:
if self.runAsDaemon():
self.daemon.stop()
self.daemon.delpid()
except:
self.log.critical(traceback.format_exc())