in reply to Backgrounding a Program
If you want your process to properly act as a daemon, then the simplest method is to use the Proc::Daemon module:
#!/usr/bin/perl -w use strict; use Proc::Daemon; Proc::Daemon::Init; # your code goes here __END__
This module takes care of all the little things necessary for proper daemonization: as per the docs:
|
|---|