delayed-restart-app

Restart the JiuwenSwarm app process after a bounded delay using a detached Python launcher.

2.5k|422|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/openJiuwen-ai/jiuwenswarm --skill delayed-restart-app-openjiuwen-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: delayed-restart-app
Source: https://github.com/openJiuwen-ai/jiuwenswarm/tree/main/jiuwenswarm/resources/agent/workspace/skills/delayed-restart-app
Command: npx skills add https://github.com/openJiuwen-ai/jiuwenswarm --skill delayed-restart-app-openjiuwen-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill solves the need to restart the JiuwenSwarm app when the user requests a service restart or when changes must be applied, without immediately interrupting the current response flow.

Core Features & Use Cases

  • Delayed self-restart: Terminates and relaunches the JiuwenSwarm app process after a short delay.
  • Session-safe behavior: Ends the current agent session so new connections attach to the restarted process.
  • Deterministic restart workflow: Uses a bash-invoked launcher that spawns the delayed restart worker in a detached manner.

Use cases:

  • User explicitly asks to restart the app/agent/service (e.g., “重启 app/重启服务”).
  • Configuration updates require a restart to take effect.
  • Service abnormality feedback suggests reloading to recover.

Quick Start

Ask the agent to “重启服务(延迟重启 JiuwenSwarm app)” and ensure the Skill can access the current app PID so it can terminate and relaunch after 5 seconds.

Frequently Asked Questions about delayed-restart-app

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

FAQPage Schema
How do I restart a service with a delay without killing the current process flow?

Delayed restarting terminates and relaunches the app process after a bounded delay, preventing the restart launcher from being killed with the current process. It uses a bash-invoked launcher that spawns a detached Python restart worker.

What is the best way to apply configuration updates that require an app restart?

Applying configuration updates requires a delayed self-restart to terminate and relaunch the app process after a short delay. This ensures the new configuration takes effect without immediately interrupting the current agent response flow.

Why does a delayed service restart end my current agent session?

A delayed service restart ends the current agent session so new connections attach to the newly restarted process. This session-safe behavior ensures the app terminates and relaunches cleanly after the specified delay.

Do I need the app PID to trigger a delayed restart?

Yes, triggering a delayed restart requires the caller to supply the target app PID. This PID is necessary for the detached Python restart command to terminate and relaunch the correct JiuwenSwarm app process.

Can I use a delayed restart for service recovery after abnormal behavior?

Yes, delayed restart applies to service recovery actions after abnormal behavior. It terminates the problematic app process and relaunches it after a 5-second delay to restore normal service operation.

How does detached execution prevent the restart launcher from failing?

Detached execution prevents the restart launcher from failing by spawning the delayed restart worker independently. This ensures the worker is not killed when the current JiuwenSwarm app process is terminated during the restart workflow.