Added sdbd service to emulator_preinit.target 24/71624/2 accepted/tizen/common/20160526.150426 submit/tizen/20160526.083749
authorshingil.kang <shingil.kang@samsung.com>
Thu, 26 May 2016 08:11:31 +0000 (17:11 +0900)
committershingil.kang <shingil.kang@samsung.com>
Thu, 26 May 2016 08:17:19 +0000 (17:17 +0900)
- Sdbd needs to be booted early for debugging.
- Moved the target of sdbd service to emulator_preinit.target from emulator.target

Change-Id: I55708052dd8b831684a0a83139935cd14e96af98
Signed-off-by: shingil.kang <shingil.kang@samsung.com>
packaging/sdbd.spec
packaging/sdbd_emulator.service

index 826c4f0..6a3da0b 100644 (file)
@@ -2,7 +2,7 @@
 
 Name:       sdbd
 Summary:    SDB daemon
-Version:    3.0.11
+Version:    3.0.12
 Release:    0
 License:    Apache-2.0
 Summary:    SDB daemon
@@ -59,8 +59,8 @@ mkdir -p %{buildroot}%{_libdir}/systemd/system
 mkdir -p %{buildroot}%{_unitdir}
 %ifarch %{ix86}
 install -m 0644 %SOURCE1002 %{buildroot}%{_libdir}/systemd/system/sdbd.service
-mkdir -p %{buildroot}/%{_libdir}/systemd/system/emulator.target.wants
-ln -s %{_libdir}/systemd/system/sdbd.service %{buildroot}/%{_libdir}/systemd/system/emulator.target.wants/
+mkdir -p %{buildroot}/%{_libdir}/systemd/system/emulator_preinit.target.wants
+ln -s %{_libdir}/systemd/system/sdbd.service %{buildroot}/%{_libdir}/systemd/system/emulator_preinit.target.wants/
 %else
 install -m 0644 %SOURCE1001 %{buildroot}%{_unitdir}/sdbd.service
 install -m 0644 %SOURCE1004 %{buildroot}%{_unitdir}/sdbd_tcp.service
@@ -94,7 +94,7 @@ fi
 %attr(0755, root, root) %{_sysconfdir}/init.d/sdbd
 %{_unitdir}/sdbd.service
 %ifarch %{ix86}
-%{_libdir}/systemd/system/emulator.target.wants/sdbd.service
+%{_libdir}/systemd/system/emulator_preinit.target.wants/sdbd.service
 %else
 %{_unitdir}/sdbd_tcp.service
 %{_libdir}/systemd/system/multi-user.target.wants/sdbd.service
index 1a2f298..3db25cf 100644 (file)
@@ -14,5 +14,5 @@ SmackProcessLabel=User
 ExecStart=/bin/sh -c "/usr/sbin/sdbd `/usr/bin/awk '{match($0, /sdb_port=([0-9]+)/,port_match); match($0, /vm_name=([^, ]*)/,vm_match); print \"--emulator=\" vm_match[1] \":\" port_match[1] \" --connect-to=10.0.2.2:26099\" \" --sensors=10.0.2.2:\"port_match[1]+3 }' /proc/cmdline`"
 
 [Install]
-WantedBy=emulator.target
+WantedBy=emulator_preinit.target