From: SooChan Lim Date: Fri, 19 Aug 2016 04:44:23 +0000 (+0900) Subject: systemd: support for lazy mount of user data X-Git-Tag: accepted/tizen/common/20160822.132710^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ed8ff15a0f917f57387d444a6cd4845e05bd7803;p=platform%2Fcore%2Fuifw%2Flibtdm.git systemd: support for lazy mount of user data Change-Id: Ib328791d52f6c8a107984c88611842a39c2ebc19 --- diff --git a/packaging/libtdm.spec b/packaging/libtdm.spec index 789371f..2817a78 100644 --- a/packaging/libtdm.spec +++ b/packaging/libtdm.spec @@ -80,13 +80,24 @@ install -m 644 service/tdm-socket-user.path %{buildroot}%{_unitdir_user} %pre %__mkdir_p %{_unitdir}/graphical.target.wants ln -sf ../tdm-socket.path %{_unitdir}/graphical.target.wants/ + +%if "%{?profile}" == "mobile" || "%{?profile}" == "wearable" +%__mkdir_p %{_unitdir_user}/basic.target.wants +ln -sf ../tdm-socket-user.path %{_unitdir_user}/basic.target.wants/ +%else %__mkdir_p %{_unitdir_user}/default.target.wants ln -sf ../tdm-socket-user.path %{_unitdir_user}/default.target.wants/ +%endif %post -p /sbin/ldconfig %postun -p /sbin/ldconfig rm -f %{_unitdir}/graphical.target.wants/tdm-socket.path + +%if "%{?profile}" == "mobile" || "%{?profile}" == "wearable" +rm -f %{_unitdir_user}/basic.target.wants/tdm-socket-user.path +%else rm -f %{_unitdir_user}/default.target.wants/tdm-socket-user.path +%endif %files %manifest %{name}.manifest diff --git a/service/tdm-socket-user.service b/service/tdm-socket-user.service index 97d0f6f..367a531 100644 --- a/service/tdm-socket-user.service +++ b/service/tdm-socket-user.service @@ -1,5 +1,6 @@ [Unit] Description=Creating a link file for user to access tdm-socket +DefaultDependencies=no [Service] Type=oneshot