From: jkjo92 Date: Thu, 6 Jul 2017 11:48:13 +0000 (+0900) Subject: Changed to be used in system daemon X-Git-Tag: accepted/tizen/3.0/common/20170720.141343~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5439d11afd482c5b2b267f4a252a80517ddaa03;p=platform%2Fcore%2Faccount%2Ffido-client.git Changed to be used in system daemon Change-Id: Id437aa6d8e1bb72d8570e6da986e5669e1368179 Signed-off-by: jkjo92 --- diff --git a/packaging/fido-client.spec b/packaging/fido-client.spec old mode 100644 new mode 100755 index 24d5820..0e57577 --- a/packaging/fido-client.spec +++ b/packaging/fido-client.spec @@ -123,6 +123,9 @@ install -m 0644 %SOURCE1 %{buildroot}/usr/share/dbus-1/system-services/org.tizen mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/dbus-1/system.d/ +mkdir -p %{buildroot}%{_unitdir} +install -m 644 %SOURCE3 %{buildroot}%{_unitdir}/fido.service + mkdir -p %{buildroot}/usr/share/dbus-1/system-services install -m 0644 %SOURCE4 %{buildroot}/usr/share/dbus-1/system-services/org.tizen.dummyasm.service @@ -175,6 +178,7 @@ chsmack -a '_' %{_libdir}/fido/asm/ %if "%{?tizen_version}" == "3.0" %attr(0644,root,root) /usr/share/dbus-1/system-services/org.tizen.fido.service +%attr(0644,root,root) %{_unitdir}/fido.service %else %{_libdir}/systemd/system/org.tizen.fido.service diff --git a/packaging/fido.service b/packaging/fido.service old mode 100644 new mode 100755 index 6d09e27..3ef170d --- a/packaging/fido.service +++ b/packaging/fido.service @@ -1,9 +1,10 @@ [Unit] Description=FIDO Client service -After=tizen-runtime.target -Requires=tizen-runtime.target [Service] +User=service_fw +Gruop=service_fw +SmackProcessLabel=System Type=dbus BusName=org.tizen.fido ExecStart=/usr/bin/fido-service diff --git a/packaging/org.tizen.fido.service b/packaging/org.tizen.fido.service old mode 100644 new mode 100755 index 2bd3ab3..c8ab4ba --- a/packaging/org.tizen.fido.service +++ b/packaging/org.tizen.fido.service @@ -3,6 +3,5 @@ Description=FIDO Service D-Bus [D-BUS Service] Name=org.tizen.fido -Exec=/usr/bin/fido-service -User=service_fw -Group=service_fw +Exec=/bin/false +SystemdService=fido.service