Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-1246

Missing necessary option for user-config.service

XMLWordPrintable

      Although user-config.service execution is enough with one success, it executes every time when launching application.
      Therefore, when the user touch short cut or launcher icon on HomeScreen very quickly, systemd rejects starting user-config.service like following.

      Dec 28 17:10:21 m3ulcb systemd[3964]: user-config.service: Start request repeated too quickly.
      Dec 28 17:10:21 m3ulcb systemd[3964]: Failed to start AGL user config.
      Dec 28 17:10:21 m3ulcb systemd[3964]: Dependency failed for This is a demo application used to control and dialog with HVAC system.
      Dec 28 17:10:21 m3ulcb systemd[3964]: afm-appli-hvac@0.1.service: Job afm-appli-hvac@0.1.service/start failed with result 'dependency'.
      Dec 28 17:10:21 m3ulcb systemd[3964]: user-config.service: Unit entered failed state.
      Dec 28 17:10:21 m3ulcb systemd[3964]: user-config.service: Failed with result 'start-limit-hit'.
      

      As a result, the user manipulation is ignored by HomeScreen. (E.g. Touch icon but nothing happen)
      This also causes critical error for some applications. (e.g. Navigation)

      Dec 28 17:07:51 m3ulcb systemd[4000]: user-config.service: Start request repeated too quickly.
      Dec 28 17:07:51 m3ulcb systemd[4000]: Failed to start AGL user config.
      Dec 28 17:07:51 m3ulcb systemd[4000]: Dependency failed for NAVIGATION App.
      Dec 28 17:07:51 m3ulcb systemd[4000]: afm-appli-navigation@0.1.service: Job afm-appli-navigation@0.1.service/start failed with result 'dependency'.
      Dec 28 17:07:51 m3ulcb systemd[4000]: user-config.service: Failed with result 'start-limit-hit'.
      

      To fix this, it is required to set 'RemainAfterExit' 'yes' like following.

      [Unit]
      Description=AGL user config
      
      [Service]
      ExecStart=/bin/ln -sf /run/platform/display/wayland-0 %t/
      RemainAfterExit=yes
      
      [Install]
      WantedBy=default.target
      

        # Subject Branch Project Status CR V

            jobol-iot jose bollo
            ruke47 Tadao Tanikawa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: