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)