Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to manage Linux services
QtWS25 Last Chance

How to manage Linux services

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 484 Views
  • 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.
  • mrdebugM Offline
    mrdebugM Offline
    mrdebug
    wrote on last edited by
    #1

    On Windows there are many apis to manage the services such as
    EnumServicesStatusEx
    I need to manage (start, stop, isStarted, isStopped) two services, related to my application.
    Is there a nice approach, without to use QProcess and console commands?

    Need programmers to hire?
    www.labcsp.com
    www.denisgottardello.it
    GMT+1
    Skype: mrdebug

    aha_1980A 1 Reply Last reply
    0
    • mrdebugM mrdebug

      On Windows there are many apis to manage the services such as
      EnumServicesStatusEx
      I need to manage (start, stop, isStarted, isStopped) two services, related to my application.
      Is there a nice approach, without to use QProcess and console commands?

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @mrdebug,

      that depends which init system your target Linux uses.

      For example systemd (which is used in modern systems like Ubuntu 16.04), provides a D-Bus API

      Remember that you need elevated privileges to start/stop services from the command line, I expect the same applies to the API also.

      Qt has to stay free or it will die.

      1 Reply Last reply
      2

      • Login

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