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(f"Log: {logdir}/tap-*.log")
|
||||||
print("Press Ctrl+C to stop — container will restart automatically.\n")
|
print("Press Ctrl+C to stop — container will restart automatically.\n")
|
||||||
try:
|
try:
|
||||||
run(f"python3 {tap_script} {port} {backend} {logdir}", timeout=300)
|
import subprocess
|
||||||
except:
|
subprocess.call(["python3", tap_script, port, backend, logdir])
|
||||||
|
except KeyboardInterrupt:
|
||||||
pass
|
pass
|
||||||
finally:
|
finally:
|
||||||
print(f"\nRestarting wallarm-{n['name']}...")
|
print(f"\nRestarting wallarm-{n['name']}...")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue