Link to home
Start Free TrialLog in
Avatar of dpeng
dpeng

asked on

Creating a Daemon

I need to make a process into a daemon either through the command line or programmatically.  (command line, preferred)

ASKER CERTIFIED SOLUTION
Avatar of harrys
harrys

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of overcode
overcode

Linux Journal ran an article on daemons a while back, complete with code samples. It might be available on their web site.

-Reeves
What do you mean by a daemon?  Most programs that are considered daemons first fork a new process, orphan the child (by having the parent exit), close all the file descriptors and reset the session ids.
Avatar of dpeng

ASKER

Alright I'll try it out.