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 fc078afdbe22c9a06533347b6d1a6311e00f25d9..e1c0619dc674c12ad4aa3f186ee4ef065e5f68f1 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 c6a8de4e5ecdfaf1966e61c4b67c7c1dceadb186..1c65cb31c51559affe841bfa9a6e243d38a1910b 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 0b92d85269ea65a8cddd0dde0f493f287b870211..295f59486e0d5ff0b46a56d5fc1bda943f413993 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