core: Add support for dbus activation for thermal 27/210827/1
authorDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 18 Jul 2019 01:51:12 +0000 (10:51 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 25 Jul 2019 06:07:01 +0000 (15:07 +0900)
To support dbus activation by not only pass core but also thermal,
this patch adds dbus activation support.

Change-Id: I50e13d43df9c775ae177a455805af41921f00286
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
CMakeLists.txt
packaging/pass.spec
systemd/org.tizen.system.thermal.service [new file with mode: 0644]

index 78ef96c..2ee22c4 100644 (file)
@@ -101,6 +101,7 @@ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/${PROJECT_NAME}.conf DESTINATI
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-pmqos.conf DESTINATION /etc/pass)
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-thermal.conf DESTINATION /etc/pass)
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/systemd/org.tizen.system.pass.service DESTINATION /usr/share/dbus-1/system-services)
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/systemd/org.tizen.system.thermal.service DESTINATION /usr/share/dbus-1/system-services)
 
 CONFIGURE_FILE(${PROJECT_NAME}.pc.in ${PROJECT_NAME}.pc @ONLY)
 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
index a23bf98..87bb13a 100644 (file)
@@ -104,6 +104,7 @@ systemctl daemon-reload
 %{_unitdir}/delayed.target.wants/%{daemon_name}.service
 %{_unitdir}/%{daemon_name}.service
 %{_datadir}/dbus-1/system-services/org.tizen.system.pass.service
+%{_datadir}/dbus-1/system-services/org.tizen.system.thermal.service
 
 %files -n %{hal_name}
 %defattr(-,root,root,-)
diff --git a/systemd/org.tizen.system.thermal.service b/systemd/org.tizen.system.thermal.service
new file mode 100644 (file)
index 0000000..dc686c0
--- /dev/null
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=org.tizen.system.thermal
+Exec=/bin/false
+SystemdService=pass.service