diff --git a/CouchPotato.py b/CouchPotato.py index 33ad4e0..9a0d9fb 100755 --- a/CouchPotato.py +++ b/CouchPotato.py @@ -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())