two-phase-service-stop

Stop PyQt6 gateway processes with a two-phase shutdown and port cleanup.

11|2|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/SSujitX/clawdbot-ui --skill two-phase-service-stop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: two-phase-service-stop
Source: https://github.com/SSujitX/clawdbot-ui/tree/main/.agent/skills/two-phase-service-stop
Command: npx skills add https://github.com/SSujitX/clawdbot-ui --skill two-phase-service-stop

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Stops gateway processes safely by performing a two-phase shutdown.

Core Features & Use Cases

  • Two-phase stop: Graceful shutdown then force kill on the target port
  • UI feedback and guaranteed cleanup
  • Platform-aware commands for Windows vs Unix-like systems
  • Safe completion with optimistic UI and verification

Quick Start

Trigger the two-phase stop flow to gracefully stop the gateway and ensure the port is released.

Frequently Asked Questions about two-phase-service-stop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform a graceful shutdown of a PyQt6 gateway without leaving orphaned processes?

You can perform a graceful shutdown using a two-phase stop mechanism that first attempts a safe termination and then force kills the target port, ensuring no orphaned processes remain on your PyQt6 gateway.

What is a two-phase shutdown and when do I need it for port release?

A two-phase shutdown attempts a graceful stop first, then escalates to a force kill on the target port. It is needed when standard PyQt6 termination leaves orphaned processes blocking port release.

Does this two-phase stop work on both Windows and Unix-like systems?

Yes, the two-phase stop uses platform-aware commands to ensure safe completion and port release across both Windows and Unix-like systems.

How do I verify that a PyQt6 gateway port is actually released after stopping?

You verify port release using built-in UI feedback and safe completion checks, which confirm the two-phase stop successfully cleaned up the gateway processes.

Why does my PyQt6 app leave orphaned processes during a standard gateway shutdown?

Orphaned processes remain because standard shutdowns fail to fully terminate all port bindings. A two-phase stop resolves this by applying a force kill after the graceful attempt.