Try and stop running daemon first
This commit is contained in:
1 parent
f2b1c6b688
commit
d0aca61165
1 file changed
+1
@@ -85,6 +85,7 @@ class Loader(object):
|
|||||||
# remove old pidfile first
|
# remove old pidfile first
|
||||||
try:
|
try:
|
||||||
if self.runAsDaemon():
|
if self.runAsDaemon():
|
||||||
|
self.daemon.stop()
|
||||||
self.daemon.delpid()
|
self.daemon.delpid()
|
||||||
except:
|
except:
|
||||||
self.log.critical(traceback.format_exc())
|
self.log.critical(traceback.format_exc())
|
||||||
|
|||||||
Reference in new issue
Block a user