From 0ac96a2ed0434220769cf19539f6f908bfc5ce59 Mon Sep 17 00:00:00 2001 From: Sungwook Park Date: Tue, 12 Nov 2019 17:21:38 +0900 Subject: [PATCH] Use the systemd service for the dbus auto-activation Change-Id: Iaa133ce04b71f2b5bdfeed486a7e31211194a6c0 Signed-off-by: Sungwook Park Signed-off-by: Hyotaek Shim --- packaging/smartreply.service | 10 ++++++++++ packaging/smartreply.spec | 3 +++ 2 files changed, 13 insertions(+) create mode 100755 packaging/smartreply.service 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 -- 2.7.4