mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-22 14:13:40 -07:00
Merge c5537901a8
into 9409303f24
This commit is contained in:
commit
9e9b71917a
1 changed files with 7 additions and 6 deletions
|
@ -708,12 +708,13 @@ def shutdown(restart=False, update=False):
|
|||
|
||||
if restart:
|
||||
logger.info('PlexPy is restarting...')
|
||||
popen_list = [sys.executable, FULL_PATH]
|
||||
popen_list += ARGS
|
||||
if '--nolaunch' not in popen_list:
|
||||
popen_list += ['--nolaunch']
|
||||
logger.info('Restarting PlexPy with %s', popen_list)
|
||||
subprocess.Popen(popen_list, cwd=os.getcwd())
|
||||
exe = sys.executable
|
||||
args = [exe, FULL_PATH]
|
||||
args += ARGS
|
||||
if '--nolaunch' not in args:
|
||||
args += ['--nolaunch']
|
||||
logger.info('Restarting PlexPy with %s %s', exe, ' '.join(args))
|
||||
os.execv(exe, args)
|
||||
|
||||
os._exit(0)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue