Tauri Sidecar Lifecycle

Use when managing the lifetime of a sidecar child in a Tauri v2 app — stashing `CommandChild` in `Mutex`Option...`` managed state, draining `CommandEvent::{Stdout,Stderr,Terminated,Error}` on a `tokio::spawn` receiver, supervised restart-on-crash with exponential backoff, killing on `RunEvent::ExitRequested` (and the Windows `taskkill /T /F /PID` escalation when grandchildren survive), choosing graceful SIGTERM vs immediate SIGKILL, and HTTP health-check polling against the sidecar's port.

stuffbucket Updated 4 repo stars

File contents

stuffbucket/skills commit 72b012e421

Frequently asked questions

npx get-skill add stuffbucket/tauri-sidecar-lifecycle