From: Liu, Guoqiang Date: Tue, 21 May 2013 04:57:57 +0000 (+0800) Subject: Fix the issue can't send MMS X-Git-Tag: submit/tizen_2.2/20130714.152008~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6af9b0091fb127a3c6a1de841ea95df8d6bd569a;p=framework%2Fmessaging%2Fmsg-service.git Fix the issue can't send MMS The reason of this issue is msg-server can't access network as msg-server run in app level. so change it run in root level. Before changed sh-4.1# ps aux | grep msg-server app 475 0.7 0.9 92536 9684 ? SNsl 17:31 0:00 /usr/bin/msg-server After changed sh-4.1# ps aux | grep msg-server root 326 0.0 1.2 92864 12340 ? SNsl 12:24 0:00 /usr/bin/msg-server Change-Id: I9912052cd6152b15c778783993c64deb1c5397dd --- diff --git a/CMakeLists.txt b/CMakeLists.txt index c0c09a8..d48e3f5 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,8 +58,8 @@ INSTALL(FILES ${CMAKE_BINARY_DIR}/msg-service.pc DESTINATION ${LIB_INSTALL_DIR}/ SET(RC_LOCAL_SCRIPT msg-server) INSTALL(PROGRAMS ${RC_LOCAL_SCRIPT} DESTINATION /etc/rc.d/init.d) -INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/packaging/msg-service.service DESTINATION /usr/lib/systemd/user) -INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/packaging/msg-service-log.service DESTINATION /usr/lib/systemd/user) +INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/packaging/msg-service.service DESTINATION /usr/lib/systemd/system) +INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/packaging/msg-service-log.service DESTINATION /usr/lib/systemd/system) # LICENSE file INSTALL(FILES ${CMAKE_SOURCE_DIR}/LICENSE.Flora DESTINATION /usr/share/license/msg-service) diff --git a/msg-service.manifest b/msg-service.manifest index cd79114..1a886d6 100755 --- a/msg-service.manifest +++ b/msg-service.manifest @@ -23,7 +23,7 @@ - - + + diff --git a/packaging/msg-service.spec b/packaging/msg-service.spec index 68f4a91..e159a4f 100755 --- a/packaging/msg-service.spec +++ b/packaging/msg-service.spec @@ -110,10 +110,10 @@ mkdir -p %{buildroot}/var/log/msgfw %make_install -mkdir -p %{buildroot}/usr/lib/systemd/user/tizen-middleware.target.wants +mkdir -p %{buildroot}/usr/lib/systemd/system/network.target.wants #install -m 0644 %SOURCE101 %{buildroot}/usr/lib/systemd/user/ -ln -s ../msg-service.service %{buildroot}/usr/lib/systemd/user/tizen-middleware.target.wants/msg-service.service -ln -s ../msg-service-log.service %{buildroot}/usr/lib/systemd/user/tizen-middleware.target.wants/msg-service-log.service +ln -s ../msg-service.service %{buildroot}/usr/lib/systemd/system/network.target.wants/msg-service.service +ln -s ../msg-service-log.service %{buildroot}/usr/lib/systemd/system/network.target.wants/msg-service-log.service mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc3.d ln -s %{_sysconfdir}/rc.d/init.d/msg-server %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S70msg-server @@ -536,10 +536,10 @@ fi %{_sysconfdir}/rc.d/init.d/msg-server %{_sysconfdir}/rc.d/rc3.d/S70msg-server %{_sysconfdir}/rc.d/rc5.d/S70msg-server -/usr/lib/systemd/user/msg-service.service -/usr/lib/systemd/user/msg-service-log.service -/usr/lib/systemd/user/tizen-middleware.target.wants/msg-service.service -/usr/lib/systemd/user/tizen-middleware.target.wants/msg-service-log.service +/usr/lib/systemd/system/msg-service.service +/usr/lib/systemd/system/msg-service-log.service +/usr/lib/systemd/system/network.target.wants/msg-service.service +/usr/lib/systemd/system/network.target.wants/msg-service-log.service /usr/share/license/msg-service/LICENSE.Flora /opt/etc/smack/accesses.d/msg-service.rule /etc/config/sysinfo-message.xml