mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-05 20:51: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)
|
||||
|
||||
if CREATEPID:
|
||||
logger.info("Removing pidfile %s", PIDFILE)
|
||||
os.remove(PIDFILE)
|
||||
logger.info("Removing PID file: %s", PIDFILE)
|
||||
try:
|
||||
os.remove(PIDFILE)
|
||||
except OSError:
|
||||
logger.warn("Failed to remove PID file '%s'", PIDFILE)
|
||||
|
||||
if restart:
|
||||
logger.info("Tautulli is restarting...")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue