mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
Base: Launch SQLServer at session start-up
This commit is contained in:
parent
267a2c7c32
commit
22f8ead2f4
3 changed files with 8 additions and 9 deletions
|
@ -39,14 +39,6 @@ Environment=TERM=xterm
|
|||
KeepAlive=true
|
||||
SystemModes=text
|
||||
|
||||
[SQLServer]
|
||||
Socket=/tmp/portal/sql
|
||||
SocketPermissions=600
|
||||
Priority=low
|
||||
Lazy=true
|
||||
KeepAlive=true
|
||||
User=anon
|
||||
|
||||
[CrashDaemon]
|
||||
KeepAlive=true
|
||||
User=anon
|
||||
|
|
|
@ -77,6 +77,13 @@ Lazy=true
|
|||
MultiInstance=true
|
||||
AcceptSocketConnections=true
|
||||
|
||||
[SQLServer]
|
||||
Socket=/tmp/user/%uid/portal/sql
|
||||
SocketPermissions=600
|
||||
Priority=low
|
||||
Lazy=true
|
||||
KeepAlive=true
|
||||
|
||||
[LaunchServer]
|
||||
Socket=/tmp/user/%uid/portal/launch
|
||||
SocketPermissions=600
|
||||
|
|
|
@ -16,7 +16,7 @@ namespace SQL {
|
|||
class SQLClient
|
||||
: public IPC::ConnectionToServer<SQLClientEndpoint, SQLServerEndpoint>
|
||||
, public SQLClientEndpoint {
|
||||
IPC_CLIENT_CONNECTION(SQLClient, "/tmp/portal/sql"sv)
|
||||
IPC_CLIENT_CONNECTION(SQLClient, "/tmp/user/%uid/portal/sql"sv)
|
||||
virtual ~SQLClient() = default;
|
||||
|
||||
Function<void(int, String const&)> on_connected;
|
||||
|
|
Loading…
Add table
Reference in a new issue