Forking is a bad, bad idea. Not even servers do it these days anymore. The correct approach is to capture the console and have the process be launched and controlled by something like http://upstart.ubuntu.com/ - not to fork into the background.
Forking is a bad, bad idea. Not even servers do it these days anymore. The correct approach is to capture the console and have the process be launched and controlled by something like http:// upstart. ubuntu. com/ - not to fork into the background.