Fixed phoned launch paths and systemd unit configurations so that
it can be launched properly on start up. Fixed permission to run
as app user instead of root.
Change-Id: Ib94f65fd35e1e53a58369ce0235be20d8ff65e04
Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
# Global variables
# -----------------------------------------------------------------------------
-SET(DESTINATION_PREFIX sbin)
+SET(DESTINATION_PREFIX bin)
SET(DBUS_SERVICE_PREFIX share/dbus-1/services)
-SET(SYSTEMD_SERVICE_PREFIX lib/systemd/user)
+SET(SYSTEMD_SERVICE_PREFIX lib/systemd/system)
# -----------------------------------------------------------------------------
# Macros for pkgconfig
+* Wed Aug 27 2014 Jimmy Huang <jimmy.huang@intel.com> submit/tizen/20140416.223255-3-g9e04e01
+- Fixed systemd unit files
+
* Mon Apr 14 2014 brianjjones <brian.j.jones@intel.com> accepted/tizen/ivi/release/20140404.212421@5627815
- Memory leak fix patch
rm -rf %{buildroot}
%make_install
+%install_service multi-user.target.wants phoned.service
+
%files
%{_libdir}/pkgconfig/phoned.pc
-%{_prefix}/sbin/phoned
+%{_prefix}/bin/phoned
%{_prefix}/share/dbus-1/services/org.tizen.phone.service
-%{_prefix}/lib/systemd/user/phoned.service
+%{_unitdir}/phoned.service
+%{_unitdir}/multi-user.target.wants/phoned.service
[Unit]
Description=Service to provide/export Phone functionality
-After=sound.target
+After=ofono.service
[Service]
-ExecStart=/usr/sbin/phoned
+Type=dbus
+User=app
+BusName=org.tizen.phone
+ExecStart=/usr/bin/phoned
Type=simple
[Install]
-WantedBy=tizen-middleware.target
+WantedBy=multi-user.target