Base: Launch SQLServer at session start-up

This commit is contained in:
Lucas CHOLLET 2022-07-24 15:59:40 +02:00 committed by Linus Groh
parent 267a2c7c32
commit 22f8ead2f4
3 changed files with 8 additions and 9 deletions

View file

@ -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

View file

@ -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

View file

@ -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;