1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 15:27:34 +00:00

SystemServer: Implement lazy spawning

For services explicitly configured as lazy, SystemServer will now listen
on the socket and only spawn the service once a client attempts to connect
to the socket.
This commit is contained in:
Sergey Bugaev 2019-11-26 19:41:16 +03:00 committed by Andreas Kling
parent ab98969403
commit 52b0bd06a8
4 changed files with 40 additions and 4 deletions

View file

@ -6,12 +6,14 @@ Priority=high
[ProtocolServer]
Socket=/tmp/portal/protocol
Lazy=1
Priority=low
KeepAlive=1
User=anon
[LookupServer]
Socket=/tmp/portal/lookup
Lazy=1
Priority=low
KeepAlive=1
User=anon
@ -24,6 +26,7 @@ User=anon
[AudioServer]
Socket=/tmp/portal/audio
# TODO: we may want to start it lazily, but right now WindowServer connects to it immediately on startup
Priority=high
KeepAlive=1
User=anon