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