use Proc::Daemon; Proc::Daemon::Init; [download]
In reply to Re: Running Client in Background by brechin in thread Running Client in Background by deadpickle