System controller startup depends on AUL services. The startup fails
if ico-system-controller.service is called before amd_ready flag is
set by AUL.
Add a systemd .path unit to wait until AUL is ready and call system
controller .service only after that.
Change-Id: Iae0e43a963a74d4a3ddf27f0bcca40b786327a18
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
Environment=TIZEN_DLOG_LEVEL=1
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/dbus/user_bus_socket
Environment=XDG_RUNTIME_DIR=/run/user/5000
+Type=oneshot
ExecStart=/usr/bin/launch_app org.tizen.ico.system-controller
-
-[Install]
-WantedBy=weston.target
--- /dev/null
+Description=Path activation for ico-system-controller
+
+[Path]
+PathExists=/tmp/amd_ready
+Unit=ico-system-controller.service
+
+[Install]
+WantedBy=weston.target
/usr/apps/org.tizen.ico.system-controller
/usr/share/packages/org.tizen.ico.system-controller.xml
/usr/lib/systemd/user/ico-system-controller.service
-/usr/lib/systemd/user/weston.target.wants/ico-system-controller.service
+/usr/lib/systemd/user/ico-uxf-wait-launchpad-ready.path
+/usr/lib/systemd/user/weston.target.wants/ico-uxf-wait-launchpad-ready.path
%files system-controller-devel
%defattr(-,root,root,-)
install -m 0644 ../../data/share/packages/org.tizen.ico.system-controller.xml $(INSTALL_ROOT)/usr/share/packages
install -m 0644 $(top_srcdir)/res/org.tizen.ico.system-controller/res/config/* $(INSTALL_ROOT)/usr/apps/org.tizen.ico.system-controller/res/config
+ install -m 0644 $(top_srcdir)/data/lib/systemd/user/ico-uxf-wait-launchpad-ready.path $(INSTALL_ROOT)/usr/lib/systemd/user
install -m 0644 $(top_srcdir)/data/lib/systemd/user/ico-system-controller.service $(INSTALL_ROOT)/usr/lib/systemd/user
- ln -sf ../ico-system-controller.service $(INSTALL_ROOT)/usr/lib/systemd/user/weston.target.wants
+ ln -sf ../ico-uxf-wait-launchpad-ready.path $(INSTALL_ROOT)/usr/lib/systemd/user/weston.target.wants