Stone.js API
    Preparing search index...

    Supervises a single long-running child process for the dev server.

    A naive kill(); spawn() restart races on the listening port (the old process has not yet released it → intermittent EADDRINUSE). This manager makes restarts deterministic: it sends SIGTERM, waits for the child's exit event (force-killing with SIGKILL after a timeout), and only then spawns the replacement. It also owns a single set of SIGINT/ SIGTERM handlers so Ctrl+C always tears the child down instead of leaving an orphan.

    Index
    • get running(): boolean

      Whether a child is currently running.

      Returns boolean

    • Restart the child: terminate the current one, wait for it to actually exit (so the port is released), then spawn a fresh one. No-op once stopped.

      Returns Promise<void>

    • Start the child process (first launch). No-op once stopped.

      Returns void

    • Stop the supervisor permanently and terminate the child.

      Returns Promise<void>