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.
This commit is contained in:
Aiden McClelland
2026-03-11 15:17:53 -06:00
parent 90b73dd320
commit 10a5bc0280
6 changed files with 37 additions and 20 deletions

View File

@@ -3,6 +3,6 @@ import type { StartStop } from './StartStop'
export type DesiredStatus =
| { main: 'stopped' }
| { main: 'restarting' }
| { main: 'restarting'; restartAgain: boolean }
| { main: 'running' }
| { main: 'backing-up'; onComplete: StartStop }