I want to start a C program in the background from the terminal. The program acts as bluetooth-driver, which means it has to stay open while the system is running. I tried with nohup and start-stop-daemon, but in both cases the c program gets the exit command and closes.
How can I start a C program from a terminal that then runs in the background? I want to start it and then be able to close the terminal on the gui (while the started c-programm keeps happily running).