[Solved] (patching QtService) QtService dependencies
-
wrote on 21 Oct 2015, 10:58 last edited by mrdebug
My service need to be started after another service. How can I set a dependency?
setServiceDescription("DomusBoss X, DomusBoss resources management"); QtServiceBase::setStartupType(QtServiceController::AutoStartup);
...
-
Hi,
It's not something Qt does for you. You'll have to setup your OS properly to handle that.
-
wrote on 22 Oct 2015, 06:11 last edited by
Sorry but I think not.
In the other languages, Delphi for example, in the program source code, where I set up the service name, I can set the dependencies.
I think qt base should implement this feature. -
Sorry, I misunderstood your enquiry. For Windows, CreateService is used for that. You have to modify QtServices to add that dependency part.
-
wrote on 23 Oct 2015, 09:25 last edited by
Just done.
Now I'm sending the patch to the maintainer. I hope he will implement it in the official package. -
Through Gerrit ?
-
wrote on 23 Oct 2015, 13:32 last edited by
Sorry? I don't know Gerrit.
-
That's the official tool to submit patches to Qt. See the Gerrit introduction article
-
wrote on 26 Oct 2015, 10:26 last edited by
It was more easy to patch instead of to submit the patch.
8/9