mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
Black
This commit is contained in:
parent
987675326d
commit
5332fa457c
3 changed files with 34 additions and 32 deletions
|
@ -21,7 +21,9 @@ def stop_websockify():
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
if subprocess.run(['pgrep', 'websockify'], stdout=subprocess.PIPE, check=False).stdout:
|
if subprocess.run(['pgrep', 'websockify'], stdout=subprocess.PIPE, check=False).stdout:
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
if subprocess.run(['pgrep', 'websockify'], stdout=subprocess.PIPE, check=False).stdout:
|
if subprocess.run(
|
||||||
|
['pgrep', 'websockify'], stdout=subprocess.PIPE, check=False
|
||||||
|
).stdout:
|
||||||
logging.info("websockify didn't stop, killing forcefully")
|
logging.info("websockify didn't stop, killing forcefully")
|
||||||
subprocess.run(['kill', '-9', pid], stdout=subprocess.PIPE, check=False)
|
subprocess.run(['kill', '-9', pid], stdout=subprocess.PIPE, check=False)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue