Results 1 to 6 of 6

Thread: QtService on Ubuntu/Linux

  1. #1
    Join Date
    Feb 2011
    Posts
    354
    Thanks
    17
    Thanked 27 Times in 24 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default QtService on Ubuntu/Linux

    Hello. I am developing the Linux daemon, now testing it on Ubuntu 12.04. The project is based on the QtService class. The documentation seems to lack for guidelines on how to install it and automatically run at startup. I've tried calling "sudo ./myservice -install", so it creates some QtSoftware.conf in /etc/xdg folder. Then I start the daemon just typing "./myservice". It seems to work fine, but I don't see it in the list of services, also it doesn't start automatically after system reboot. Please, could somebody explain how it was meant to be used?

  2. #2
    Join Date
    Feb 2010
    Location
    Cuba
    Posts
    35
    Thanks
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QtService on Ubuntu/Linux

    Why I can't find QtService class? I have installed QtSdk based on Qt 4.8.1
    I'm developing a Linux daemon too on Ubuntu 12.04.

  3. #3
    Join Date
    Feb 2011
    Posts
    354
    Thanks
    17
    Thanked 27 Times in 24 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default Re: QtService on Ubuntu/Linux

    QtService is not a part of QtSDK. Download it from here.

  4. #4
    Join Date
    Feb 2010
    Location
    Cuba
    Posts
    35
    Thanks
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QtService on Ubuntu/Linux

    Quote Originally Posted by mentalmushroom View Post
    QtService is not a part of QtSDK. Download it from here.
    Excuse me for asking before searching in google. This solution seems interesting.
    Now, to run my demon when I want, I'll use cron.

    Sorry my English

  5. #5
    Join Date
    Apr 2014
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QtService on Ubuntu/Linux

    I Have the same problem of mentalmushroom. Does anyone know how to fix it?

  6. #6
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QtService on Ubuntu/Linux

    Quote Originally Posted by frabiaso View Post
    I Have the same problem of mentalmushroom. Does anyone know how to fix it?
    Which is?

    The process not appearing in the process list?
    Or the process not running if it is not being started?

    Cheers,
    _

Similar Threads

  1. Replies: 6
    Last Post: 9th May 2012, 10:53
  2. Build QT Embedded Linux Ubuntu Error ?
    By Thành Viên Mới in forum Installation and Deployment
    Replies: 0
    Last Post: 4th November 2010, 04:15
  3. Replies: 0
    Last Post: 15th June 2010, 14:22
  4. Can't Compile on Ubuntu Linux
    By mpauley in forum Newbie
    Replies: 6
    Last Post: 9th April 2010, 22:00
  5. Replies: 5
    Last Post: 6th March 2009, 09:58

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.