Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt Service FW and restarting services
Qt 6.11 is out! See what's new in the release blog

Qt Service FW and restarting services

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 3.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MiguS
    wrote on last edited by
    #1

    I'm using Qt Service FW for my service (implemented in Qt), and QML based application, using QML Service element. Is there way to prevent service from restarting every time when this client app is launched? In my solution, the service is started in device start-up, and the service should be running all the time. It does also so, but whenever I launch the app (who is using that service), the service is restarted. I do not understand why, and is this something intentionally implemented in the FW. The service is managing certain resources and this restarting causes unneeded difficulties in housekeeping. Also my purpose is that in certain condition the service would launch this very same app - and now when launching this app will cause service to be restarted. Has this something to do with the fact I'm using QML Service element? Would situation be different if the app was implemented in Qt, not QML?
    So I would like to understand how I could arrange so the the service is not restarted whenever I launch my app (which uses that service).
    Thank for the responses

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MiguS
      wrote on last edited by
      #2

      Giving some answer to myself... issue seems to be that the service, although defined to be kept running when client session closes, is stopped when client is closed. I have created a bug report: https://bugreports.qt.nokia.com/browse/QTMOBILITY-1930

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved