fix: run tap proxy interactively — user controls stop with Ctrl+C
This commit is contained in:
parent
f5eaf58e9b
commit
d955bbff0c
1 changed files with 3 additions and 2 deletions
|
|
@ -423,8 +423,9 @@ def start_debug():
|
|||
print(f"Log: {logdir}/tap-*.log")
|
||||
print("Press Ctrl+C to stop — container will restart automatically.\n")
|
||||
try:
|
||||
run(f"python3 {tap_script} {port} {backend} {logdir}", timeout=300)
|
||||
except:
|
||||
import subprocess
|
||||
subprocess.call(["python3", tap_script, port, backend, logdir])
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
finally:
|
||||
print(f"\nRestarting wallarm-{n['name']}...")
|
||||
|
|
|
|||
Loading…
Reference in a new issue