Name: sdbd
Summary: SDB daemon
-Version: 3.0.11
+Version: 3.0.12
Release: 0
License: Apache-2.0
Summary: SDB daemon
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
%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
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