Use the systemd service for the dbus auto-activation 35/217535/3
authorSungwook Park <sungwook79.park@samsung.com>
Tue, 12 Nov 2019 08:21:38 +0000 (17:21 +0900)
committersungwook park <sungwook79.park@samsung.com>
Wed, 13 Nov 2019 01:55:00 +0000 (01:55 +0000)
Change-Id: Iaa133ce04b71f2b5bdfeed486a7e31211194a6c0
Signed-off-by: Sungwook Park <sungwook79.park@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
packaging/smartreply.service [new file with mode: 0755]
packaging/smartreply.spec

diff --git a/packaging/smartreply.service b/packaging/smartreply.service
new file mode 100755 (executable)
index 0000000..447e911
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=smartreply
+
+[Service]
+Type=dbus
+BusName=org.tizen.smartreply
+User=ui_fw
+Group=ui_fw
+SmackProcessLabel=System
+ExecStart=/usr/bin/smartreplyd
index b5599c77659a214a0b06318446b4b80112080b13..132aa7746e787ec34b112c73a110b525c8d615a4 100755 (executable)
@@ -43,6 +43,8 @@ make %{?jobs:-j%jobs}
 rm -rf %{buildroot}
 %make_install
 
+install -D -m 0644 packaging/smartreply.service %{buildroot}%{_libdir}/systemd/system/smartreply.service
+
 %post
 /sbin/ldconfig
 
@@ -55,6 +57,7 @@ rm -rf %{buildroot}
 %{_libdir}/*.so*
 %license LICENSE
 /etc/dbus-1/system.d/*.conf
+%{_libdir}/systemd/system/smartreply.service
 #%if %{BINTYPE} == "engineer"
 %{_includedir}/smartreply/smartreply_service.h
 #%endif