mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
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:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user