[Non-ACR]Systemd based dbus activation 15/217715/2 accepted/tizen/unified/20191120.130626 submit/tizen/20191120.045055
authorAbhishek Vijay <abhishek.v@samsung.com>
Wed, 13 Nov 2019 12:21:48 +0000 (17:51 +0530)
committerAbhishek Vijay <abhishek.v@samsung.com>
Thu, 14 Nov 2019 04:34:13 +0000 (10:04 +0530)
Change-Id: Iaa164deb979e63ac8022b1a197b09c65d255eb93
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
packaging/dummyasm.service [new file with mode: 0755]
packaging/fido-client.spec
packaging/org.tizen.dummyasm.service

diff --git a/packaging/dummyasm.service b/packaging/dummyasm.service
new file mode 100755 (executable)
index 0000000..e1ee0f6
--- /dev/null
@@ -0,0 +1,13 @@
+[Unit]
+Description= dummyasm service
+
+[Service]
+User=service_fw
+Group=service_fw
+SmackProcessLabel=System
+Type=dbus
+BusName=org.tizen.dummyasm
+ExecStart=/usr/bin/dummyasm-service
+
+[Install]
+WantedBy=multi-user.target
index 376ffb1..288a921 100755 (executable)
@@ -16,6 +16,7 @@ Source3:    org.tizen.fido.service
 
 Source4:    org.tizen.dummyasm.service
 Source5:    org.tizen.dummyasm.conf
+Source6:    dummyasm.service
 
 BuildRequires:  cmake
 BuildRequires:  pkgconfig(glib-2.0)
@@ -129,6 +130,9 @@ 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
 
+mkdir -p %{buildroot}%{_unitdir}
+install -m 644 %SOURCE3 %{buildroot}%{_unitdir}/dummyasm.service
+
 mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
 install -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/dbus-1/system.d/
 
@@ -149,6 +153,9 @@ cp -af %{SOURCE4} %{buildroot}%{_libdir}/systemd/system/
 
 mkdir -p %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants
 ln -s %SOURCE4 %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/org.tizen.dummyasm.service
+
+mkdir -p %{buildroot}%{_unitdir}
+install -m 644 %SOURCE3 %{buildroot}%{_unitdir}/dummyasm.service
 %endif
 
 
@@ -272,6 +279,7 @@ This is a dummy ASM for testing FIDO client.
 %config %{_sysconfdir}/dbus-1/system.d/org.tizen.dummyasm.conf
 %{_bindir}/dummyasm-service
 %attr(0644,root,root) /usr/share/dbus-1/system-services/org.tizen.dummyasm.service
+%attr(0644,root,root) %{_unitdir}/dummyasm.service
 %{_libdir}/fido/asm/dummy_asm.json
 
 %else
index 1cf69a6..07cbbea 100644 (file)
@@ -1,4 +1,7 @@
+[Unit]
+Description=dummyasm service DBUS
+
 [D-BUS Service]
 Name=org.tizen.dummyasm
-Exec=/usr/bin/dummyasm-service
-User=service_fw
+Exec=/bin/false
+SystemdService=dummyasm.service