créating a daemon under unix

hi
i want to create a daemon under unix or linux but i don't really know how so i will be grateful if you provide me links with examples or /andx how to do it
thanks

Go to paragraph 1.7:

http://www.faqs.org/faqs/unix-faq/programmer/faq/

Unix Daemon Server Programming

use fork to create a child process and then exit the parent process