I developed a Qt application that contains a TCP server, etc. Now I am trying to make Ubuntu packages and automatically launch the application at startup.
The application must be launched, even if no one is registered, which means that the daemon was launched through a script in /etc/init.d/
I tried just starting the application at startup and sending a kill signal at a halt in the init.d script, but that means the application starts in the foreground and blocks the init script.
Viking, as in another question , seems to work, I get an “unknown error” after trying to start a TCP server. However, there should be an easy way to write an init script that runs my application in the background when it runs on various Linux distributions.
Can someone point me in the right direction?
Using Ubuntu 9.10 with Qt 4.5
dutchmega
source share