summaryrefslogtreecommitdiff
path: root/Base
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2019-11-26 19:41:16 +0300
committerAndreas Kling <awesomekling@gmail.com>2019-11-26 19:58:25 +0100
commit52b0bd06a8627ac75a4b667a5631a1c10456cc82 (patch)
treeb0aaa729afe6e22e52f0546f07725f55e90e1ddf /Base
parentab98969403ff69fa9e4001c28ae8ea9115bfd8d4 (diff)
downloadserenity-52b0bd06a8627ac75a4b667a5631a1c10456cc82.zip
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.
Diffstat (limited to 'Base')
-rw-r--r--Base/etc/SystemServer.ini3
1 files changed, 3 insertions, 0 deletions
diff --git a/Base/etc/SystemServer.ini b/Base/etc/SystemServer.ini
index 0ead2fb94c..3c55918dfa 100644
--- a/Base/etc/SystemServer.ini
+++ b/Base/etc/SystemServer.ini
@@ -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