From 95e928bfcbdc39ac6695d36a8fcfecee54194945 Mon Sep 17 00:00:00 2001 From: echel0n Date: Thu, 19 Jun 2014 10:36:31 -0700 Subject: [PATCH] Fix for PID file: /tmp/sickbeard.pid already exists during auto updates --- sickbeard/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sickbeard/__init__.py b/sickbeard/__init__.py index ba94047b..e7618920 100644 --- a/sickbeard/__init__.py +++ b/sickbeard/__init__.py @@ -1841,3 +1841,7 @@ def autoreload_shutdown(): # save settings saveAll() + + if CREATEPID: + logger.log(u"Removing pidfile " + str(PIDFILE)) + remove_pid_file(PIDFILE)