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>
%{_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
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)
[Unit]
Description=Session daemon
+DefaultDependencies=no
[Service]
Type=dbus
--- /dev/null
+[Unit]
+Description=DBUS1: org.tizen.sessiond
+Documentation=man:systemd
+DefaultDependencies=no
+
+[BusName]
+Name=org.tizen.sessiond
+Service=sessiond.service
+AllowWorld=talk