mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-20 23:17:35 -04:00
31 lines
475 B
Plaintext
31 lines
475 B
Plaintext
@startuml
|
|
|
|
actor Driver
|
|
participant "System Manager" as sysmgr
|
|
participant "Dependency Graph" as graph
|
|
participant Service as srv
|
|
|
|
Driver -> sysmgr: Pass a list\nof services
|
|
sysmgr -> graph **: create
|
|
|
|
|||
|
|
sysmgr -> graph: addServices()
|
|
|
|
|||
|
|
sysmgr -> graph: topologicalSort()
|
|
|
|
|||
|
|
activate graph
|
|
graph --> sysmgr: sorted services
|
|
deactivate graph
|
|
destroy graph
|
|
|||
|
|
|
|
loop for each service in sorted services
|
|
sysmgr -> srv: Start
|
|
srv --> sysmgr: Confirmation
|
|
end
|
|
|||
|
|
|
|
@enduml
|