Files
start-os/sdk/base/lib/osBindings/DesiredStatus.ts
Aiden McClelland 10a5bc0280 fix: add restart_again flag to DesiredStatus::Restarting
When a restart is requested while the service is already restarting
(stopped but not yet started), set restart_again so the actor will
perform another stop→start cycle after the current one completes.
2026-03-11 15:18:46 -06:00

9 lines
331 B
TypeScript

// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { StartStop } from './StartStop'
export type DesiredStatus =
| { main: 'stopped' }
| { main: 'restarting'; restartAgain: boolean }
| { main: 'running' }
| { main: 'backing-up'; onComplete: StartStop }