fix: stale stop message, add restart/start-all/stop-all tests

This commit is contained in:
2026-05-21 12:59:04 +08:00
parent 179e3b2b5c
commit c365e668a5
2 changed files with 64 additions and 3 deletions

View File

@@ -201,7 +201,10 @@ def stop(ctx, name):
click.echo(f"{tunnel.name} is not running")
continue
stop_tunnel(config_dir, tunnel.name)
click.echo(f"Stopped {tunnel.name}")
if status.state == "stale":
click.echo(f"{tunnel.name}: cleaned up stale pid")
else:
click.echo(f"Stopped {tunnel.name}")
@cli.command()