mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
feature: Adding in the stopping state (#2677)
* feature: Adding in the stopping state * chore: Deal with timeout in the sigterm for main * chore: Update the timeout * Update web/projects/ui/src/app/pages/apps-routes/app-list/app-list-pkg/app-list-pkg.component.ts Co-authored-by: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com> * Update web/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-status/app-show-status.component.ts Co-authored-by: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com> --------- Co-authored-by: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com>
This commit is contained in:
@@ -139,10 +139,13 @@ export class SystemForStartOs implements System {
|
||||
return
|
||||
}
|
||||
case "/main/stop": {
|
||||
if (this.onTerm) await this.onTerm()
|
||||
await effects.setMainStatus({ status: "stopped" })
|
||||
delete this.onTerm
|
||||
return duration(30, "s")
|
||||
try {
|
||||
if (this.onTerm) await this.onTerm()
|
||||
delete this.onTerm
|
||||
return
|
||||
} finally {
|
||||
await effects.setMainStatus({ status: "stopped" })
|
||||
}
|
||||
}
|
||||
case "/config/set": {
|
||||
const input = options.input as any // TODO
|
||||
|
||||
Reference in New Issue
Block a user