Add dbus activation feature 63/209863/2
authorJusung Son <jusung07.son@samsung.com>
Fri, 12 Jul 2019 04:09:55 +0000 (13:09 +0900)
committerJusung Son <jusung07.son@samsung.com>
Mon, 15 Jul 2019 01:45:25 +0000 (10:45 +0900)
Change-Id: Ibf4510ed3d0e6ce022979ef69beed82de4ffbf51
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
CMakeLists.txt
org.tizen.esd.service.in [new file with mode: 0644]
packaging/esd.service
packaging/esd.spec

index ef58439cec4bc197d8bd6c4120aefe8806bebcc6..eb6a587397cdaeaee66d92f3550f360a9a4490c2 100644 (file)
@@ -43,6 +43,8 @@ SET_TARGET_PROPERTIES(esd PROPERTIES LINK_FLAGS "-pie -Wl,-z,relro")
 
 # pkgconfig file
 configure_file(esd.manifest.in esd.manifest @ONLY)
+configure_file(org.tizen.esd.service.in org.tizen.esd.service @ONLY)
 
 INSTALL(TARGETS esd DESTINATION bin)
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/eventsystem.conf DESTINATION /etc/dbus-1/system.d)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/org.tizen.esd.service DESTINATION ${SHARE_INSTALL_PREFIX}/dbus-1/system-services/)
\ No newline at end of file
diff --git a/org.tizen.esd.service.in b/org.tizen.esd.service.in
new file mode 100644 (file)
index 0000000..4315d2c
--- /dev/null
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=tizen.system.event.app2esd\r
+Exec=/bin/false
+SystemdService=esd.service
\ No newline at end of file
index 37a055661994f15f71aa53b91d44230972cbaad3..cc8c69ec8e6c458e6d2d4fb627bac0f5c036e297 100644 (file)
@@ -1,15 +1,17 @@
 [Unit]
 Description=Start the Event System Daemon
-Wants=wait-mount@opt-usr.service
-After=wait-mount@opt-usr.service
+Requires=dbus.socket buxton2.service
+After=dbus.socket buxton2.service
 
 [Service]
 User=app_fw
 Group=app_fw
+Type=dbus
 SmackProcessLabel=System
+BusName=tizen.system.event.app2esd
 ExecStart=/usr/bin/esd
 Restart=on-failure
 RestartSec=0
 
 [Install]
-WantedBy=default.target
+WantedBy=multi-user.target
\ No newline at end of file
index 95ed77adc26c147085fedb81eb1881c9ae422f9e..ef615c0f801705bf8f4a0c75b2dc6ea4660c39c0 100644 (file)
@@ -55,9 +55,9 @@ make %{?jobs:-j%jobs}
 rm -rf %{buildroot}
 %make_install
 
-mkdir -p %{buildroot}%{_unitdir}/graphical.target.wants
+mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
 install -m 0644 %SOURCE1 %{buildroot}%{_unitdir}/esd.service
-ln -sf ../esd.service %{buildroot}%{_unitdir}/graphical.target.wants/esd.service
+ln -sf ../esd.service %{buildroot}%{_unitdir}/multi-user.target.wants/esd.service
 
 %post -p /sbin/ldconfig
 
@@ -69,7 +69,8 @@ ln -sf ../esd.service %{buildroot}%{_unitdir}/graphical.target.wants/esd.service
 %defattr(-,root,root,-)
 %{_bindir}/esd
 %{_unitdir}/esd.service
-%{_unitdir}/graphical.target.wants/esd.service
+%{_unitdir}/multi-user.target.wants/esd.service
+%attr(0644,root,root) %{_datadir}/dbus-1/system-services/org.tizen.esd.service
 %license LICENSE
 
 %files devel