Start sdbd at boot time 57/14757/2
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Fri, 10 Jan 2014 15:10:21 +0000 (16:10 +0100)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Fri, 10 Jan 2014 16:21:35 +0000 (17:21 +0100)
Bug-Tizen: TIVI-2400
Change-Id: Idc9c4616ea36f0f51330626d60ecfd562d4edd16
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
packaging/sdbd.changes
packaging/sdbd.spec
packaging/sdbd_device.service

index fc078af..e1c0619 100644 (file)
@@ -1,3 +1,6 @@
+* Fri Jan 10 2014 Kévin THIERRY <kevin.thierry@open.eurogiciel.org> accepted/tizen/20131112.015040@29f2623
+- Start sdbd at boot time
+
 * Thu Oct 31 2013 Junfeng Dong <junfeng.dong@intel.com> submit/tizen/20131011.084016@81e3d5b
 - Fix some runtime issue in 3.0
 
index c6a8de4..1c65cb3 100644 (file)
@@ -29,16 +29,18 @@ make %{?jobs:-j%jobs}
 %install
 %make_install
 
-mkdir -p %{buildroot}%{_libdir}/systemd/system
+install -d %{buildroot}%{_libdir}/systemd/system
 %if 0%{?simulator}
 install -m 0644 %SOURCE1002 %{buildroot}%{_libdir}/systemd/system/sdbd.service
-mkdir -p %{buildroot}/%{_libdir}/systemd/system/emulator.target.wants
+install -d %{buildroot}/%{_libdir}/systemd/system/emulator.target.wants
 ln -s %{_libdir}/systemd/system/sdbd.service %{buildroot}/%{_libdir}/systemd/system/emulator.target.wants/
 %else
 install -m 0644 %SOURCE1001 %{buildroot}%{_libdir}/systemd/system/sdbd.service
+install -d %{buildroot}/%{_libdir}/systemd/system/multi-user.target.wants/
+ln -s %{_libdir}/systemd/system/%{name}.service %{buildroot}/%{_libdir}/systemd/system/multi-user.target.wants/
 %endif
 
-mkdir -p %{buildroot}%{_prefix}/sbin
+install -d %{buildroot}%{_prefix}/sbin
 install -m 755 script/sdk_launch %{buildroot}%{_prefix}/sbin/
 
 %files
@@ -51,6 +53,8 @@ install -m 755 script/sdk_launch %{buildroot}%{_prefix}/sbin/
 %{_libdir}/systemd/system/sdbd.service
 %if 0%{?simulator}
 %{_libdir}/systemd/system/emulator.target.wants/sdbd.service
+%else
+%{_libdir}/systemd/system/multi-user.target.wants/%{name}.service
 %endif
 
 %changelog
index 0b92d85..295f594 100644 (file)
@@ -1,6 +1,6 @@
 [Unit]
 Description=sdbd
-After=default.target
+After=syslog.target
 
 [Service]
 Type=forking
@@ -8,3 +8,6 @@ Environment=DISPLAY=:0
 PIDFile=/tmp/.sdbd.pid
 RemainAfterExit=yes
 ExecStart=/usr/sbin/sdbd
+
+[Install]
+WantedBy=multi-user.target