Add support for dbus on-demand activation based on kdbus 91/324791/4
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 26 May 2025 12:22:26 +0000 (21:22 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 29 May 2025 11:11:59 +0000 (20:11 +0900)
Add support for dbus on-demand activation based on kdbus
by adding org.tizen.sessiond.busname file.

When systemd-dbus1-generator creates the org.tizen.sessiond.busname
automatically by using /usr/share/dbus-1/system-services/org.tizen.system.sessiond.service
source file, it doesn't work properly on kdbus with following log.
Add *.busname file manually and add 'DefaultDependencies=no'
into sessiond.service, this issue is resolved.

[Example of that buxton2 execute libsessdiond at the early boot of TV]
(snip) org.tizen.sessdiond.busname: Not runnable by sysinit.target (After)

Change-Id: I7cf0ff239ae94359edf2bb74da17fccda224cc2d
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
packaging/sessiond.spec
src/service/CMakeLists.txt
src/service/sessiond.service
src/service/systemd/org.tizen.sessiond.busname [new file with mode: 0644]

index 32fe4d0c80f5a5f2e9719389435586fb23e46f2b..b45d85c6822ca3798d068e45a16005742d4572e6 100644 (file)
@@ -87,6 +87,7 @@ popd
 %{_unitdir}/sessiond.service
 %{_datadir}/dbus-1/system-services/org.tizen.system.sessiond.service
 /etc/dbus-1/system.d/org.tizen.sessiond.conf
+%{_unitdir}/org.tizen.sessiond.busname
 
 %files -n libsessiond
 %manifest sessiond.manifest
index 13ee438037c0c9fb914f61fd4c7a08e025879e08..f6f5d0b41dee3ef0126e0b48dc65b7c198a90c0a 100644 (file)
@@ -29,4 +29,5 @@ install(TARGETS sessiond)
 
 INSTALL(FILES sessiond.service DESTINATION /usr/lib/systemd/system)
 INSTALL(FILES systemd/org.tizen.system.sessiond.service DESTINATION /usr/share/dbus-1/system-services)
+INSTALL(FILES systemd/org.tizen.sessiond.busname DESTINATION /usr/lib/systemd/system)
 INSTALL(FILES org.tizen.sessiond.conf DESTINATION /etc/dbus-1/system.d)
index 701db7400f5190d3b30354110cdfe30b27cfed57..2a5745c3318f76dd93f1fc9236495e4663e195b0 100644 (file)
@@ -2,6 +2,7 @@
 
 [Unit]
 Description=Session daemon
+DefaultDependencies=no
 
 [Service]
 Type=dbus
diff --git a/src/service/systemd/org.tizen.sessiond.busname b/src/service/systemd/org.tizen.sessiond.busname
new file mode 100644 (file)
index 0000000..0b4dfdc
--- /dev/null
@@ -0,0 +1,9 @@
+[Unit]
+Description=DBUS1: org.tizen.sessiond
+Documentation=man:systemd
+DefaultDependencies=no
+
+[BusName]
+Name=org.tizen.sessiond
+Service=sessiond.service
+AllowWorld=talk