Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[Solved] (patching QtService) QtService dependencies
mrdebug 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);
It's not something Qt does for you. You'll have to setup your OS properly to handle that.
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.
Now I'm sending the patch to the maintainer. I hope he will implement it in the official package.
Through Gerrit ?
Sorry? I don't know Gerrit.
That's the official tool to submit patches to Qt. See the Gerrit introduction article
It was more easy to patch instead of to submit the patch.