You could have just googled for how to create a daemon process...
http://www.enderunix.org/docs/eng/daemon.php
You could have just googled for how to create a daemon process...
http://www.enderunix.org/docs/eng/daemon.php
If you understand what you're doing, you're not learning anything.