[uClinux-dev] Daemonize a process

Stuart MacDonald stuartm at connecttech.com
Thu Mar 13 10:24:38 EST 2003


From: "Kendrick Hamilton" <hamilton at sedsystems.ca>
> A simple way to daemonize a process:
> my_process&
> This runs the process in the background.

As pointed out elsethread, that is a background process not a daemon.
Logging out kills a background process, but not a daemon.

> Another way is to start the process is to use /etc/inittab.

*If* starting from inittab is useful. In some cases it's not. I want
to be able to run a daemon on demand from the command line.

Thanks for the response.

..Stu





More information about the uClinux-dev mailing list