diff options
author | Jihoon Jung <jh8801.jung@samsung.com> | 2020-03-09 14:59:20 +0900 |
---|---|---|
committer | Jihoon Jung <jh8801.jung@samsung.com> | 2020-03-09 15:00:06 +0900 |
commit | 3d8988d328610fe73d73efb17f50f148600e2d8b (patch) | |
tree | 930c17f1672dce051288da066f68e2798c17ad4d | |
parent | c076e8d007dd4ddb55925009fea3b7484feab1f0 (diff) | |
download | smartcard-service-accepted/tizen_5.5_unified.tar.gz smartcard-service-accepted/tizen_5.5_unified.tar.bz2 smartcard-service-accepted/tizen_5.5_unified.zip |
change dbus service to systemd servicesubmit/tizen_5.5_wearable_hotfix/20201026.184303submit/tizen_5.5/20200309.060219accepted/tizen/5.5/unified/wearable/hotfix/20201027.115033accepted/tizen/5.5/unified/20200310.151243tizen_5.5_wearable_hotfixtizen_5.5accepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified
Change-Id: I06d10b96a70c77e75f2059d64fa63ecb31daf0eb
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
-rw-r--r-- | packaging/smartcard-service.service | 10 | ||||
-rwxr-xr-x | packaging/smartcard-service.spec | 5 | ||||
-rw-r--r-- | server/org.tizen.SmartcardService.service | 6 |
3 files changed, 17 insertions, 4 deletions
diff --git a/packaging/smartcard-service.service b/packaging/smartcard-service.service new file mode 100644 index 0000000..d205d27 --- /dev/null +++ b/packaging/smartcard-service.service @@ -0,0 +1,10 @@ +[Unit] +Description=Smartcard service daemon + +[Service] +Type=dbus +BusName=org.tizen.SmartcardService +ExecStart=/usr/bin/smartcard-daemon +User=network_fw +Group=network_fw +SmackProcessLabel=System diff --git a/packaging/smartcard-service.spec b/packaging/smartcard-service.spec index ab1a2e2..d996701 100755 --- a/packaging/smartcard-service.spec +++ b/packaging/smartcard-service.spec @@ -5,6 +5,7 @@ Release: 0 Group: Network & Connectivity License: Apache-2.0 Source0: %{name}-%{version}.tar.gz +Source1: smartcard-service.service BuildRequires: cmake BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gio-unix-2.0) @@ -66,6 +67,9 @@ export LDFLAGS+=" -lgcov " %install %make_install +mkdir -p %{buildroot}/usr/lib/systemd/system/ +cp -af %{SOURCE1} %{buildroot}/usr/lib/systemd/system/ + mkdir -p %{buildroot}/etc/dbus-1/system.d/ cp -af %{_builddir}/%{name}-%{version}/packaging/org.tizen.SmartcardService.conf %{buildroot}/etc/dbus-1/system.d/ @@ -75,6 +79,7 @@ cp -af %{_builddir}/%{name}-%{version}/packaging/org.tizen.SmartcardService.conf %{_bindir}/smartcard-daemon %{_sysconfdir}/dbus-1/system.d/org.tizen.SmartcardService.conf %{_datadir}/dbus-1/system-services/org.tizen.SmartcardService.service +/usr/lib/systemd/system/%{name}.service %if 0%{?gtests:1} %{_bindir}/gtest* %endif diff --git a/server/org.tizen.SmartcardService.service b/server/org.tizen.SmartcardService.service index e55882e..c54d7fe 100644 --- a/server/org.tizen.SmartcardService.service +++ b/server/org.tizen.SmartcardService.service @@ -1,6 +1,4 @@ [D-BUS Service] Name=org.tizen.SmartcardService -Exec=/usr/bin/smartcard-daemon -MemoryLimit=10M -User=network_fw -Group=network_fw +Exec=/bin/false +SystemdService=smartcard-service.service |