mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 13:11:15 -07:00
Catch exception trying to remove PID file
This commit is contained in:
parent
623a9f2919
commit
cf8fb2e65d
1 changed files with 5 additions and 2 deletions
|
@ -2815,8 +2815,11 @@ def shutdown(restart=False, update=False, checkout=False, reset=False):
|
||||||
logger.warn("Tautulli failed to reset git install: %s. Restarting." % e)
|
logger.warn("Tautulli failed to reset git install: %s. Restarting." % e)
|
||||||
|
|
||||||
if CREATEPID:
|
if CREATEPID:
|
||||||
logger.info("Removing pidfile %s", PIDFILE)
|
logger.info("Removing PID file: %s", PIDFILE)
|
||||||
os.remove(PIDFILE)
|
try:
|
||||||
|
os.remove(PIDFILE)
|
||||||
|
except OSError:
|
||||||
|
logger.warn("Failed to remove PID file '%s'", PIDFILE)
|
||||||
|
|
||||||
if restart:
|
if restart:
|
||||||
logger.info("Tautulli is restarting...")
|
logger.info("Tautulli is restarting...")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue