From: Sungwook Park Date: Tue, 12 Nov 2019 08:21:38 +0000 (+0900) Subject: Use the systemd service for the dbus auto-activation X-Git-Tag: submit/tizen_5.5/20191113.051328~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3464391bbdaf751a177cec61d71aa0dc0dfeb03;p=platform%2Fcore%2Fuifw%2Fsmartreply.git Use the systemd service for the dbus auto-activation Change-Id: Iaa133ce04b71f2b5bdfeed486a7e31211194a6c0 Signed-off-by: Sungwook Park Signed-off-by: Hyotaek Shim --- diff --git a/packaging/smartreply.service b/packaging/smartreply.service new file mode 100755 index 0000000..447e911 --- /dev/null +++ b/packaging/smartreply.service @@ -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 diff --git a/packaging/smartreply.spec b/packaging/smartreply.spec index b5599c7..132aa77 100755 --- a/packaging/smartreply.spec +++ b/packaging/smartreply.spec @@ -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