I want to create a background application using RS and console app.
The job is read a device status over serial port.
The OS is Debian 6 without GUI, so my solution is:
For i As Integer = 0 To 100 //for example
//read serial port
//put the readed string to db
The problem that it is not working. After starting app, it quits. (ps -e |grep appname = nothing)
If I leave the Daemonize() method, the console app is working.
I need to Daemonize, what should I do?
What should you do?
Read the documentation and search the forum for the answer.
I believe it is that when running in the IDE the app will quit if Daemonized.
Add your Daemonizing code only when you're ready to build.