in reply to How do I start a perl daemon at boot time
First something general. You should probably take advantage of daemonizing code as it is not trivial. The two editions of the Perl cookbook have recommendations on this. Lincoln Stein's Perl network programming has code on this too. Search daemon on CPAN
Second, in the init script you should use absolute paths for perl and the script it tries to run. For the stop part (that is important too!) you need something like a pidfile that keeps the pid of the started process, so that in the stop part you test the pid reading the file and kill the daemon if up.
hth --stephan
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I start a perl daemon at boot time
by shigetsu (Hermit) on Feb 01, 2007 at 21:40 UTC | |
by magnolia (Initiate) on Feb 05, 2007 at 17:13 UTC |