Enable systemd activiation on feedbackd.service 43/169343/1
authorHyotaek Shim <hyotaek.shim@samsung.com>
Tue, 6 Feb 2018 05:47:12 +0000 (14:47 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Tue, 6 Feb 2018 05:47:12 +0000 (14:47 +0900)
Change-Id: Ifeb475d28740839f842a60a294d1df64b8115a11
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
CMakeLists.txt
packaging/feedbackd.spec
systemd/org.tizen.system.vibrator.service [new file with mode: 0644]

index 0900516..a509c75 100644 (file)
@@ -69,6 +69,6 @@ INSTALL(FILES ${CMAKE_SOURCE_DIR}/scripts/feedbackd.conf DESTINATION /etc/dbus-1
 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/systemd/ DESTINATION lib/systemd/system
        FILES_MATCHING
        PATTERN "feedbackd.service")
-
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/systemd/org.tizen.system.vibrator.service DESTINATION /usr/share/dbus-1/system-services)
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/haptic/conf/haptic-level3.conf DESTINATION /etc/feedbackd)
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/haptic/conf/haptic-level6.conf DESTINATION /etc/feedbackd)
index b01db16..b74c9f6 100644 (file)
@@ -284,6 +284,7 @@ mv %{_sysconfdir}/feedbackd/haptic-level6.conf %{_sysconfdir}/feedbackd/haptic.c
 %config %{_sysconfdir}/dbus-1/system.d/feedbackd.conf
 %{_unitdir}/feedbackd.service
 %{_unitdir}/multi-user.target.wants/feedbackd.service
+%{_datadir}/dbus-1/system-services/org.tizen.system.vibrator.service
 
 %files driver-external
 %license LICENSE.Apache-2.0
diff --git a/systemd/org.tizen.system.vibrator.service b/systemd/org.tizen.system.vibrator.service
new file mode 100644 (file)
index 0000000..d3c99bf
--- /dev/null
@@ -0,0 +1,5 @@
+[D-BUS Service]
+Name=org.tizen.system.vibrator
+Exec=/bin/false
+User=system_fw
+SystemdService=feedbackd.service