PDA

View Full Version : QtService on Ubuntu/Linux



mentalmushroom
20th September 2012, 15:55
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?

Hogwarts
20th September 2012, 17:23
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.

mentalmushroom
20th September 2012, 17:27
QtService is not a part of QtSDK. Download it from here (http://qt.gitorious.org/qt-solutions/qt-solutions/trees/master/qtservice).

Hogwarts
20th September 2012, 18:06
QtService is not a part of QtSDK. Download it from here (http://qt.gitorious.org/qt-solutions/qt-solutions/trees/master/qtservice).

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

frabiaso
11th April 2014, 11:24
I Have the same problem of mentalmushroom. Does anyone know how to fix it?

anda_skoa
11th April 2014, 13:48
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,
_