PDA

View Full Version : daemon processes


kernel_forbin
11-01-2002, 02:01 PM
I've written a C program for a linux system, and at first i had it run on a console for debugging puposes. Now I want it to run in the background, like a daemon process, but I'm not sure how to make it detach from the console. I can run it in the background, but when I close the console I ran it from the process it terminated. I know this is probably very simple, but I've never done it before. Any suggestions?

Strike
11-01-2002, 02:11 PM
http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC16

There you go.

kernel_forbin
11-01-2002, 02:12 PM
Thank you much!